Commit 4468a76f by BellCodeEditor

save project

parent a6ca047b
Showing with 8 additions and 2 deletions
def price():
jiage = []
while True:
danjia = input("")
danjia = input("请输入价格")
try:
if danjia == 'p':
break
else:
jiage.append(int(danjia))
except:
input("读的是陈国华测试大幅")
input("请输入整数")
print(jiage)
return jiage
price()
def sum(money):
count = 0
for i in money:
count = count + i
return count
\ No newline at end of file
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