Commit d4832176 by BellCodeEditor

save project

parent 227db05c
Showing with 9 additions and 2 deletions
def new_inpot(): def new_inpot():
total=[] total=[]
while True: while True:
unit=input("请输入:") try:
if unit="q" unit=input("请输入")
except:
print("不是数字")
if unit=="q":
break break
else: else:
total.append(unit) total.append(unit)
print(total) print(total)
new_inpot() new_inpot()
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