Commit 0e92c574 by BellCodeEditor

save project

parent d1536a55
Showing with 23 additions and 0 deletions
with open(r"C:\Users\Administrator\Desktop\page.txt",'r',encoding = 'utf-8') as f:
a = f.readlines()
final = []
for i in a :
data = i.split()
sum = 0
print(i)
for sales in data[1:]:
print("2")
sum = sum + int(sales)
result = data[0] + str(sum) + "\n"
print(data[0] + str(sum) + "\n")
#final.append()
#print(result)
"""
悟空 12 15 35 65 87 45 12 32 12
小贝 12 58 65 23 14 85 69 45 85
诺伊 22 55 33 64 78 52 65 21 45
孙小强 45 56 85 78 78 52 45 20 52
苏琪 41 52 88 78 65 35 46 85 21
"""
\ 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