Commit 05a4b33a by BellCodeEditor

save project

parent 396e64db
Showing with 6 additions and 4 deletions
with open(r'c:\Users\bellcode\Desktop\天又热感叹人生文件讨厌的人kyfj.txt','r',encoding='utf-8') as file: with open(r'c:\Users\bellcode\Desktop\天又热感叹人生文件讨厌的人kyfj.txt','r',encoding='utf-8') as file:
a=file.readlines() a=file.readlines()
#print(a) #print(a)
sum()=0
for i in a: for i in a:
data=i.split() daedta=i.split()
print(data) sum=sum+int(data)
resuit=data[0]+str(sum)
\ No newline at end of file print(resuit)
\ 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