Commit fae11946 by BellCodeEditor

auto save

parent 233b5aad
Showing with 13 additions and 9 deletions
try: def new_warm():
def new
total = [] total = []
while True: while True:
except: unit=input("请输入:")
unit= input("请输入:")
if unit== 'q': if unit== 'q':
break break
print("要输入整数哦~") else:
else: try:
total.append(unit) unit=int(unit)
print(total) except:
\ No newline at end of file print("要输入整数")
else:
total.append(unit)
print("_"*30)
print(total)
new_warm()
\ 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