【发布时间】:2019-06-16 08:24:18
【问题描述】:
我需要一些 Python 编程方面的帮助。
我想要一些打印 1 到 10 的代码。每次从 1 到 10 开始。
像这样的:
1
12
123
1234
12345
123456
1234567
12345678
123456789
12345678910
这是我的代码:
num = []
for num in range(0,11):
numb.append(num)
for word in numb:
print(numb)
【问题讨论】:
-
欢迎来到 StackOverFlow:stackoverflow.com/help/how-to-ask
标签: python loops for-loop while-loop