Commit 643e4e17 by BellCodeEditor

auto save

parent 16097c7a
Showing with 11 additions and 5 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
unit= input("u") unit= input("qing")
if unit== 'q': if unit=='q':
break break
else:
try:
unit=int(unit)
except:
peient("请数入数字")
else: else:
totaappend(unit) total.taappend(unit)
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