Commit 83265bdc by BellCodeEditor

save project

parent 4bf490c8
Showing with 4 additions and 2 deletions
def new_input():
total = []
sum=0
summ=0
while True:
unit= input("请输入:")
if unit== 'q':
......@@ -12,7 +12,9 @@ def new_input():
print("请输入正确价格")
else:
total.append(unit)
return total
for i in total:
summ+=i
return summ
r=new_input()
......
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