Commit 54d2f277 by BellCodeEditor

auto save

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