Commit 52b10a5d by BellCodeEditor

save project

parent 1eeca66b
def new_input():
score = []
while True:
s=input("输分,结束w\n")
if s=="w":
break
else:
score.insert(0,int(s))
return(score)
def total_sum(score_list):
b=0
for i in score_list:
b=b+i
return(b)
\ No newline at end of file
import dome
a=dome.new_input()
b=dome.total_sum(a)
print(str(b)+"元")
\ 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