我不能使用with open('password.csv', "r") as csvfile:
reader = csv.DictReader(csvfile)
database = [] #creates a list holder for the data
for row in reader:
database.append(dict(username=row["username"],
password=row["password"]))
authenticated = False
while not authenticated:
username = input("Enter the username: ")
password = input("Enter the password: ")
for row in database:
userFile = row["username"]
passwordFile = row["password"]
if (userFile) == username and (passwordFile) == password:
authenticated = True
if authenticated is not True:
print("Incorrect credentials")
或git
或curl
或在WSL上执行SSL请求的任何工具。结果就是这样:
Git:
apt-get
卷曲:
$ git clone https://github.com/../some-repo.git
Cloning into 'some-repo'...
fatal: unable to access 'https://github.com/../some-repo.git/': gnutls_handshake() failed: Error in the push function