Commit b728d0b4 by BellCodeEditor

save project

parent 7b7eb36b
Showing with 11 additions and 7 deletions
def feek():
total = []
while True:
try:
unit= int(input("请输入:"))
except:
print("有错,输入数字")
unit= input("请输入:")
if unit== 'q':
break
else:
if unit== 'q':
break
try:
unit=int(unit)
except:
print("有错,输入数字")
else:
total.append(unit)
print(total)
feek()
return total
t=feek()
print(t)
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