Commit c30b791e by BellCodeEditor

save project

parent 4db499ee
Showing with 17 additions and 11 deletions
def maniubi():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
total.append(unit)
print(total)
maniubi()
\ No newline at end of file
def m():
t=[]
while True:
u=input("输入q退出")
if u == "q":
break
else:
try:
u=int(u)
except:
print("输入一个数字")
else:
t.append(u)
print(""*30)
print(t)
m()
\ 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