Guest User

Untitled

a guest
Jan 12th, 2019
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. class Client:
  2. def __init__(self, username, password):
  3. self.username = username
  4. self.password = password
  5.  
  6. def read_clients(self):
  7. with open("Clients.txt", "r") as file:
  8. client_list = file.readlines()
  9. for pre_client in client_list:
  10. client = pre_client.split(" ")
  11. client_username = client[0]
  12. pre_password = client[1]
  13. client_password = pre_password.strip("n")
  14. c1 = Client(client_username, client_password)
Add Comment
Please, Sign In to add comment