Commit 688d7528 by BellCodeEditor

save project

parent 6a91c7a9
Showing with 5 additions and 1 deletions
...@@ -5,11 +5,15 @@ def a_1(): ...@@ -5,11 +5,15 @@ def a_1():
if unit== 'q': if unit== 'q':
break break
else:
try: try:
unit1=int(unit) unit1=int(unit)
except: except:
print('输入错误,请重新输入一个数字') print('输入错误,请重新输入一个数字')
else: else:
total.append(unit) total.append(unit)
print(total)
print("-"*30) print("-"*30)
print(total)
return total
a_1()
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