Commit f5f0acfd by BellCodeEditor

save project

parent c066ab40
Showing with 14 additions and 4 deletions
def new_input(): def new_input():
total = [] total = []
while True: while True:
moner=input('输入') money=input('输入')
if moner == 'q': if money == 'q':
break break
else: else:
try: try:
moner=int(moner) money=int(money)
except: except:
print("qrhgqj") print("qrhgqj")
else: else:
...@@ -16,6 +16,15 @@ def new_input(): ...@@ -16,6 +16,15 @@ def new_input():
return total return total
uu= new_input() uu= new_input()
print(uu) print(uu)
def sum(money):
count=0
for i in money:
count = count+i
return count
pay = sum(uu)
print("uwahfrojqhrgoqhegjhqjghqelkvjhqefvlkjrjkghvqelk")
\ 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