我试图制作一个程序,看看输入python程序的用户名和密码是否与存储在csv文件中的用户名和密码相同。你知道吗
logorsign = input("""Choose one:
1. Log in
2. Sign up
3. Quit
""")
print("")
if logorsign == "1":
Netflix_CSV = csv.reader(open("Netflix Task.csv", "rt"))
first_Line = next(Netflix_CSV)
checkuser = input("Enter Username: ")
print("")
checkpasw = input("Enter Password: ")
for row in Netflix_CSV:
if row[0] == checkuser:
print(watched_films)
以上是目前为止的代码。你知道吗
请帮帮我
提前谢谢
这里使用的最佳数据结构是字典:
然后,要访问用户的影片:
相关问题 更多 >
编程相关推荐