Commit 5a8cf69d by BellCodeEditor

auto save

parent 5d77683c
Showing with 14 additions and 4 deletions
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
klj=jjj.read()
print(klj)
\ No newline at end of file
with open(r'c:\Users\Administrator\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as jjj:
klj=jjj.readlines()
kaituan=0
for i in klj:
kunkun=i.split()
print(kunkun[0])
ikun=kunkun[1:]
for jinitaimei in ikun:
kaituan+=int(jinitaimei)
print(kaituan)
kaituan=0
\ No newline at end of file
......@@ -6,6 +6,7 @@
王明 30 27 26 24 29 12 15 11 22 26 23
李强 12 12 11 15 11 13 25 26 11 13 15
孙小白 25 26 12 15 27 30 48 39
蔡徐坤 100000 10000 4000 500 10 4
苏琪 15 11 15 15 30 13 27 11
刘若若 11 11 13 11 20 15 13 29 24
刘阳 11 15 22 11 23 26 22 15 17 52 12
......
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