Skip to content

Getting input · ⁨获取输入⁩

English

Ask the user with input

  • input() waits for the user to type a line and press Enter.
  • It gives back what they typed. Store it in a variable.
  • Join two strings together with +.
中文

用 input 向用户提问

  • input() 会等待用户输入一行文字并按回车。
  • 它会把用户输入的内容返回。把它存进一个变量。
  • 用 + 把两个字符串连接起来。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩