Commit c291c3a9 by BellCodeEditor

save project

parent ca77cb4a
Showing with 4 additions and 2 deletions
...@@ -5,10 +5,11 @@ def new_input(): ...@@ -5,10 +5,11 @@ def new_input():
if unit == 'q': if unit == 'q':
break break
try: try:
unit=(int) unit=int(unit)
except: except:
print("请输入一个整数") print("请输入一个整数")
else: else:
print(unit) total.append()
print("_"*30)
print(total) print(total)
new_input() new_input()
\ 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