Commit f4478dff by BellCodeEditor

save project

parent 243c5a78
Showing with 9 additions and 112 deletions
def new_inpurt():
def new_input():
total = []
while True:
money= input("请输入 (q退出):")
......@@ -6,119 +6,16 @@ def new_inpurt():
break
else:
try:
mone
money=int(money)
except:
print("请输入一整形")
else:
total.append(money)
print("_"*30)
# print(result)
return total
result=new_inpurt()
print(result)
\ No newline at end of file
results=new_input()
m=0
for i in results:
m=m+i
print(m)
\ 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