Commit d3286040 by BellCodeEditor

save project

parent 84fd9acf
Showing with 10 additions and 0 deletions
sum=[]
with open(r"C:\Users\HP\Desktop\新建文件夹 (3)\txt",'w',encoding='utf-8') as fill1:
fill1.write("罗恩:23 35 44\n哈利:60 77 68 88 90\n赫敏:97 99 89 91 95 90\n马尔福:100 85 90")
for i in fill1:
data=i.readlines()
sum=0
for a in data[1:]:
sum=sum+a
print
\ 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