我在循环浏览我的文本文件中的列表时遇到问题。我错过了一些东西,但我无法弄清楚它是什么。这是我的脚本
user = open ('users.txt' , 'r')
password = open ('password.txt' , 'r')
# username = user.readline()
password_list = password.readline()
pa = ''.join(password_list)
for users in user:
for pass_list in pa:
login_data = users + pass_list
print login_data
这就是我的输出
User2@mymail.com
P
User2@mymail.com
a
User2@mymail.com
s
User2@mymail.com
s
User2@mymail.com
w
User2@mymail.com
o
User2@mymail.com
r
User2@mymail.com
d
User2@mymail.com
1
User2@mymail.com
User3@mymail.com
P
User3@mymail.com
a
User3@mymail.com
s
User3@mymail.com
s
User3@mymail.com
w
User3@mymail.com
o
User3@mymail.com
r
User3@mymail.com
d
User3@mymail.com
1
User3@mymail.com
我想看到它打印的是
User4@mymail.com
Password1
user5@mymail.com
Password1
etc .........