Commit 6dfb3c83 by BellCodeEditor

save project

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