Commit 52a4e79a by BellCodeEditor

auto save

parent 1d779d02
Showing with 16 additions and 4 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')as ass
data=ass.read()
with open(r"c:\Users\Administrator\Documents\lesson13-1\sales_list.txt","r",encoding="utf-8")as asswecan:
data=asswecan.readlines()
for no in data:
A=no.split()
print(A[0],end=":共计")
B=0
for j in A[1:]:
B=B+int(j)
print(B)
'''蔡徐坤 11 19 45 19 14 810 364 364
张三 33 33 66 66 233 4444 56 92 30
老毕登 01 10 11 10 01 00 10 11 11 00 01 01 01 11
刘柳琉 797 4769 589 47 9 659 68 6 7 7'''
\ No newline at end of file
......@@ -10,4 +10,4 @@
刘若若 11 11 13 11 20 15 13 29 24
刘阳 11 15 22 11 23 26 22 15 17 52 12
王胜男 27 15 15 26 13 12 15
王娇 12 11 12 12 15 35 23 11
\ No newline at end of file
王娇 12 11 12 12 15 35 23 11
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