10 步:让我们再次使用新参数调用stick_figure()来创建具有不同特征的简笔画!

  • Call Parameters Into Variable代码底部的变量中。将函数名称更改为stick_person
  • 返回变量my_var重命名为person2 。这将存储从函数返回的列表!
  • 在函数调用的括号中添加三个参数: stick_person( 0 , 0 , "red" )

函数调用中的参数值提供函数运行时用于xycolor的值。

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)