Commit 4a33dfca by BellCodeEditor

save project

parent 79fb5e6b
Showing with 22 additions and 0 deletions
def cpjg():
total=[]
while True:
unit=input("请输入(q退出):")
if unit=="q":
break
else:
try:
unit=int(unit)
except:
print("请输入数字")
else:
total.append(unit)
print("_"*30)
print(total)
cpjg()
\ No newline at end of file
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
a.extend(b[2:5])
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