Commit 17c8cb24 by BellCodeEditor

save project

parent fffbfc2d
Showing with 6 additions and 9 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
money= input("请输入(q退出):") unit= input("请输入:")
if money=='q': if unit== 'q':
break break
else: else:
try: try:
money= input(money) unit= input(unit)
except: except:
print("请重新输入:") print("请重新输入:")
else: else:
total.append(money) total.append(unit)
finally: print(total)
print(1145145*1145145) new_input()
return total
swe=new_input()
print(swe)
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