Commit 466ceae6 by BellCodeEditor

save project

parent d1326b4a
Showing with 21 additions and 3 deletions
def new_inpot():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("请重新输入")
else:
total.append(unit)
print("#"*90)
print(total)
new_inpot()
\ No newline at end of file
......@@ -6,4 +6,5 @@ def new_inpot():
break
else:
total.append(unit)
print(total)
\ No newline at end of file
print(total)
new_inpot()
\ No newline at end of file
total = []
while True:
unit= input("请输入:")
unit= int(input("请输入:"))
if unit== 'q':
break
else:
......
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