gorskaja2019

Untitled

May 8th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #считали данные
  2. file = open('f.txt','r',encoding='utf-8')
  3. A = file.readline()
  4. file.close()
  5.  
  6. #запишем данные
  7. file = open('f.txt','w',encoding='utf-8')
  8. file.write('Привет, питон!')
  9. file.close()
Advertisement
Add Comment
Please, Sign In to add comment