Change a variable · 改变变量
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 基础 · Variables · 变量 →
English
Change a variable
You can put a new value in the same box. The newest value is the one that stays.
中文
改变变量
你可以往同一个盒子里放新的值。最新的值才会留下。
Set · 集合 x to · 到 1, then change x to · 到 9, then print x. It shows 9. · 先把 x 设为 1,再把 x 改成 9,然后打印 x。它会显示 9。
Click Run to see the output here. · 点击“运行”查看此处输出。