警告:此程序有错误或错误。所以让我们调试它!

规则:如果您尝试写入以只读模式( "r" )打开的文件,那么您将收到错误消息。

  • 点击运行并阅读弹出的错误信息。然后单击确定。
  • 将我们打开文件"student_scores.csv"的模式从"r"更改为"w"
  • 改变运行以查看您是否修复了该程序。固定好后点击提交接下来

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)