Commit a6c53892 by BellCodeEditor

save project

parent 2a0c79a4
Showing with 7 additions and 8 deletions
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
def new_input(): def new_input():
total=[] total=[]
while True: while True:
try:
unit= int(input("请输入:")) unit= int(input("请输入:"))
except: except:
print("sb") print("sb")
else else
if unit== 'q':
break
else:
total.append(unit) total.append(unit)
print(total) re
new_input() print(total)
\ No newline at end of file
a=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