Commit fbc04405 by BellCodeEditor

save project

parent 18f3258f
Showing with 8 additions and 2 deletions
......@@ -5,4 +5,10 @@ for i in neirong:
print(i)
list=i.split()
xingming=list[0]
yimaikuan=list[1:]
\ No newline at end of file
yimaikuan=list[1:]
print(xingming)
print(yimaikuan)
sum=0
for j in yimaikuan:
sum=sum+int(j)
print(xingming+":"+str(sum))
\ 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