Commit 625dd470 by BellCodeEditor

save project

parent b3c14f0c
Showing with 9 additions and 2 deletions
......@@ -2,8 +2,14 @@ total = []
def rtyu():
while True:
unit= input("请输入:")
try:
p=int(unit)
except:
print("输数字")
else:
total.append(p)
if unit== 'q':
break
else:
total.append(unit)
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