Commit 1d8bdc76 by BellCodeEditor

save project

parent 775dd661
Showing with 5 additions and 5 deletions
...@@ -5,12 +5,13 @@ def new_input(): ...@@ -5,12 +5,13 @@ def new_input():
if unit=="q": if unit=="q":
break break
try: try:
unit=int( unit) unit=int( unit)
except: except:
print("输入整数") print("输入整数")
else: else:
print()
total.append(unit) total.append(unit)
print(total) return (total)
\ No newline at end of file new_input()
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