Commit c30b791e by BellCodeEditor

save project

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