Commit 3ffacaa0 by BellCodeEditor

save project

parent 0213f22b
Showing with 8 additions and 8 deletions
def new_input():
total = []
while True:
unit= input("请输入(p退出)")
if unit== 'q':
money= input("请输入(p退出)")
if money == 'q':
break
else:
try:
unt = int(unt)
money = int(money)
except:
print("重输入")
else:
total.append(unit)
print(total)
print(total)
new_input()
\ No newline at end of file
total.append(money)
print("_"*30)
return total
r = new_input()
print(r)
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