Commit e5415ba6 by BellCodeEditor

save project

parent cb092f55
Showing with 4 additions and 1 deletions
...@@ -3,13 +3,15 @@ def new_input(): ...@@ -3,13 +3,15 @@ def new_input():
while True: while True:
unit= input('请输入(q退出)') unit= input('请输入(q退出)')
if unit == 'q': if unit == 'q':
break break23
try: try:
unit=int(unit) unit=int(unit)
except: except:
print("请输入一个整数") print("请输入一个整数")
else: else:
total.append() total.append()
return q
print("_"*30) print("_"*30)
print(total) print(total)
new_input() new_input()
print()
\ 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