Commit ec542e3b by BellCodeEditor

save project

parent ec83383e
Showing with 16 additions and 4 deletions
try:
name = int(input('age'))
except:
print("INT!")
else:
\ No newline at end of file
def Math(): def Math():
total = [] total = []
while True: while True:
unit= input("请输入:") try:
if unit== 'q': unit= int(input("请输入:"))
break except:
print("INT!!!!!!!")
else: else:
total.append(unit) if unit== 'q':
break
else:
total.append(unit)
print(total) print(total)
Math() Math()
\ 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