Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import Tk, simpledialog, messagebox
- root = Tk()
- root.withdraw()
- #считали данные
- d = {}
- file = open('f.txt','r',encoding='utf-8')
- for line in file:
- line = line.rstrip() #line = 'allena,qwerty'
- login, password = line.split(',') # 'allena' 'qwerty'
- d[login] = password
- file.close()
- print(d)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement