第 5 步:在我们向函数添加任何内容之前,让我们在main()中调用它。

  • 我们的create_maze函数将返回我们的导航精灵应该开始的 x 和 y 坐标。
  • ,将Call w/ Parameter into Variable main()内的变量中。
  • my_var更改为start_coordinates
  • 最后,将my_function更改为create_maze并将my_parameter更改为maze

    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)