Commit 9a621286 by BellCodeEditor

save project

parent 40087dc1
Showing with 26 additions and 0 deletions
def new_input():
total=[]
while True:
u=input("qqingshuru")
if u=="q":
break
else:
try:
u=int(u)
except:
print("qinfshuruyigeshuzi")
else:
total.append(u)
return total
def sum(money):
count=0
for i in money:
coun+=i
return count
price=new_input()
pay=sum(price)
print("erbftgvrfthwgyhj"+sty(pay)+"hbhgg")
\ 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