Until they type stop · 直到输入 stop
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
This one builds on a lesson you haven't finished yet. Do that lesson first: · 此任务基于您尚未完成的课程。请先完成以下课程:
Python Basics · Python 基础 · While loops · while 循环 →
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 本身。
循环要判断的那个值,必须在循环开始之前读一次,并且在每一轮的结尾再读一次 —— 否则会永远判断同一个词。!= 的意思是不等于。
Keep reading words with input() and printing each one back, until the word is stop. Do not print stop itself. · 不断用 input() 读入单词并原样打印,直到读到 stop 为止。不要打印 stop 本身。
Click Run to see the output here. · 点击“运行”查看此处输出。