Commit 078eba58 by BellCodeEditor

save project

parent c5e4459b
Showing with 21 additions and 10 deletions
#total = []
def x(): def x():
#while True: total = []
try: while True:
int(input("请输入:")) input("请输入单价:(按'p'退出)")
except: if y=="p":
print("请输入整数") break
else: else:
print() try:
print("程序结束") y=int(y)
x() except:
print("请输入整数")
else:
total.append(total)
#print("程序结束")
return total
totai=x()
print(totai)
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