Commit 078eba58 by BellCodeEditor

save project

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