Echo a number · 回显数字
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 基础 · Getting input · 获取输入 →
English
Echo a number
Read a line with input() and print the same thing back.
When you press Run, type a number in the highlighted box and press Enter. Check answer types 42 for you.
中文
回显数字
用 input() 读取一行,再把同样的内容打印出来。
按运行后,在高亮的方框里输入一个数字,再按回车键。按检查答案时,会替你输入 42。
Read a line with input() and print it back. For 42, show 42. · 用 input() 读取一行,再原样打印。输入 42 时,显示 42。
Click Run to see the output here. · 点击“运行”查看此处输出。