第 8 步:用户得到三个猜测,这意味着我们需要在 for 循环中添加一个询问命令。
- 去并在for循环中拖动Ask for Integer 。应该有····在它面前。
- 将.ask()前面的名称从sprite更改为computer 。
- 将.ask() to "What do you think my number is?"
请注意.ask()开头的int() () 。那就是将我们的用户输入从字符串转换为整数!
To navigate the page using the TAB key, first press ESC to exit the code editor.