第 1 步:今天的课程是关于打开和关闭文件。为了节省时间,我们为您制作了游戏!

  • 让我们开始吧!在逻辑和,将Main Function拖到MAIN FUNCTION下方。
  • 那么,在,将Function Call Into Variables拖到main()中的变量中。
  • my_function更改为play_game ,将my_var1更改为player_name ,将my_var2time
  • 游戏结束后, play_game()返回玩家的姓名以及他或她存活了多长时间。

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)