Commit b1992948 by BellCodeEditor

save project

parent f70c038a
Showing with 20 additions and 8 deletions
"""
a=int(input("输入"))
z=0
for x in range(1,a+1):
z=z+x
print(z)
"""
a=int(input("输入"))
for x in range(1,a+1):
print(x,end="")
a=input("输入")
print(a)
\ No newline at end of file
i = 5 # 行 a=['l']
j = 3 # 列 b=['y','g','gu','z','liu','c']
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 c=b[2:5]
print(i,'X',j,'=',(i*j)) a.extend(c)
\ No newline at end of file print(a)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment