Advertisement
gorskaja2019

Untitled

May 8th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from tkinter import Tk, simpledialog, messagebox
  2.  
  3. root = Tk()
  4. root.withdraw()
  5.  
  6. #считали данные
  7. d = {}
  8. file = open('f.txt','r',encoding='utf-8')
  9. for line in file:
  10. line = line.rstrip() #line = 'allena,qwerty'
  11. login, password = line.split(',') # 'allena' 'qwerty'
  12. d[login] = password
  13. file.close()
  14. print(d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement