第 3步:现在我们已经调用ask_user_question ,让我们开始构建函数吧!

  • 此函数向用户询问作为参数传入的问题。
  • 在图形中,转到并拖动ask_user_question内缩进的Ask
  • ( )中的内容从"Yes or no?"更改为question
  • 这将使精灵询问我们传递给函数的任何问题。点击起来看看结果!

    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)