图片来自官网 小黄鸭AI助教的命名来自于编程里的“rubber duck debugging”(小黄鸭调试)的梗。 第一期小黄鸭助教提供了7大功能: 1. 用简单的英语解释代码 2. 建议学生如何改进代码 3. 解释复杂的报错提示 4. 通过不断提问,启发学生查找代码中的错误 5. 评估学生程序水平 6. 提供反馈 7. 通过口试来测验学生...
the CS50 folks are proponents ofrubber duck debugging, a technique that consists in explaining your code to a literary rubber duck. By explaining it, one can gain a better understanding of its logic, and potentially discern bugs. Well, in CS50, the duck can now reply. You cantry it out...
rubber duck debugging。 Array printf(“Average: %f\n”, (score1+ score2+ score3)/3.0); format type double和argument type 3.0一致。 当算平均数多起来,使用数组连续存储同类型的值。 #include<stdio.h> #include<cs50.h> int main (void) ...