第 7 步:让我们在main()中调用我们的新函数!

  • ,将Call with Parameters拖到main()的内部和底部。
  • my_function()更改为ask_for_password() 。此功能将提示用户输入密码。
  • 最后,将my_var1更改为text并将my_var2更改为password

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)