Commit e1c57799 by BellCodeEditor

save project

parent bdb4b6c8
Showing with 13 additions and 7 deletions
total = [] total = []
def mypuint(): def mypuint():
while True: while True:
unit= input("请输入:") b = 0
if unit== 'q': a = input("请输入:")
break try:
b = int(a)
except:
if a == "q":
return
else: else:
total.append(unit) total.append(b)
print(total)
mypuint()
\ No newline at end of file mypuint()
print(total)
\ 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