警告:该程序有语法错误。我们需要调试错误,以便程序可以运行!

函数调用必须包含与函数定义中的参数相同数量的参数。

  • 点击运行并阅读错误消息。它说函数调用缺少两个“必需参数”!
  • 这些“必需参数”是必须为函数定义中的参数传入的值!
  • 通过添加rand_font , rand_size作为函数调用括号中的最后一个参数来修复错误。

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)