Repeat text · 重复文字
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 基础 · Working with strings · 处理字符串 →
English
Repeat text
* repeats text. "ha" * 3 becomes hahaha.
中文
重复文字
* 可以重复文字。"ha" * 3 会变成 hahaha。
Use * to repeat text. Show hahaha: print("ha" * 3). · 用 * 重复文字。显示 hahaha:print("ha" * 3)。
Click Run to see the output here. · 点击“运行”查看此处输出。