Commit 1575e3bb by BellCodeEditor

save project

parent ad428ddc
Showing with 17 additions and 8 deletions
try:
age=int(input('聪聪'))
except:
print("给你发的收入")
else:
if age < 18:
print("还款日")
print("上的人推己及人")
def new_input():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
try:
unit=int(unit)
except:
print("再输一个数字")
else:
total.append(unit)
print(total)
return total
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