第 13 步:现在我们可以根据用户选择最多的字母向用户显示他们的结果。

这将测试用户是否选择了"a"最多。

  • 并将if拖到程序的底部。
  • 将测试变量从choice更改为result ,并将测试值从"yes"更改为a_num
  • Say拖到 if 语句的内部。

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)