Skip to content

Until they type stop · ⁨直到输入 stop⁩

English

Until they type stop

Keep reading words with input() and printing each one back, until the word is stop. Do not print stop itself.

The value the loop tests has to be read before the loop starts, and read again at the end of every turn — otherwise the same word is tested for ever. != means is not equal to.

中文

直到输入 stop

不断用 input() 读入单词并原样打印,直到读到 stop 为止。不要打印 stop 本身。

循环要判断的那个值,必须在循环开始之前读一次,并且在每一轮的结尾再读一次 —— 否则会永远判断同一个词。!= 的意思是不等于。

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

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