Commit a7a7fb1d by BellCodeEditor

save project

parent b4139e67
Showing with 13 additions and 9 deletions
def feek(): def feek():
total = [] total = []
while True: while True:
unit= input("请输入:") try:
if unit== 'q': unit= int(input("请输入:"))
break except:
else: print("有错,输入数字")
total.append(unit) else:
print(total) if unit== 'q':
\ No newline at end of file break
else:
total.append(unit)
print(total)
feek()
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