Commit c14a2f72 by BellCodeEditor

auto save

parent 05e7d622
Showing with 38 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:
count+=i
return count
# price=new_input()
# pay=sum(price)
# print("erbftgvrfthwgyhj"+str(pay)+"hbhgg")
\ No newline at end of file
import func
data=func.new_input()
score=func.sum(data)
print("hnbndfn"+str(score))
import func
data=func.new_input()
score=func.sum(data)
print("hnbndfn"+str(score))
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