Commit 3c495d34 by BellCodeEditor

save project

parent 97314f9c
Showing with 13 additions and 6 deletions
try :
age = int(input("今年几岁"))
except:
print("输入整数")
print("程序结束")
\ No newline at end of file
def f():
toal = []
while Tiur
try:
unit = int (input("输入价格"))
except:
if(unit == 'q')
exit()
else:
print("输入错误,请输入整数")
else:
toal.append(unit)
\ 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