第 9步:记住, roll_2数据类型integer 。我们需要其转换为string

  • 转到逻辑,单击并拖入Convert to String 。将其放在程序的底部。
  • str()中的变量从my_varroll_2
  • =左侧的变量从my_varroll_2_string

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)