Commit cc641f09 by BellCodeEditor

save project

parent 88566e67
Showing with 23 additions and 5 deletions
bro1="刘备"
bro2="关羽"
bro3="张飞"
bros=[bro1,bro2,bro3]
print(bros)
bros[0]=bro2
bros[1]=bro1
print(bros)
\ No newline at end of file
for i in range(1,10): # 行 # for i in range(1,10): # 行
for j in range(1,i+1): # for j in range(1,i+1):
print(j,"×",i,"=",(j*i),end=" ") # print(j,"×",i,"=",(j*i),end=" ")
print() # 列 # print() # 列
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 # # 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
list = [0,'1','2',3,4,'5']
print(list[:7])
i = range(1,10,2)
print(i)
for i in range(1,10,2)
print(i,)
\ 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