Commit f64093c2 by BellCodeEditor

save project

parent e37ba869
Showing with 4 additions and 9 deletions
with open(r'c:/Users/admin/AppData/Roaming/pythonWin/pythone.txt','r',encoding='uft-8') as file:
a=file.readines()
for i in a:
data = i.split()
sum = 0
for b in data[1:]:
sum= sum+int(b)
print(data[0]+str(sum))
\ No newline at end of file
with open(r'c:\Users\admin\Desktop\Kittenblpc.txt','r',encoding='utf-8')as file:
r=file.readlines()
print(a)
\ 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