标签:password use div code pytho color day owa for
li=[{‘usename‘:‘xiaowang‘}, {‘password‘:‘123456‘} ] board=[‘张三‘,‘李四‘,‘王大麻子‘] while 1: usename = input(‘用户名:‘) if usename.upper()==‘Q‘:break password = input(‘密码:‘) for i in board: if i in usename: usename=usename.replace(i,‘*‘*len(i)) li.append({‘usename‘:usename,‘password‘:password}) print({‘usename‘:usename,‘password‘:password}) print(li)
注意: for i in board:
if i in usename:
usename=usename.replace(i,‘*‘*len(i))
标签:password use div code pytho color day owa for
原文地址:https://www.cnblogs.com/qq946487854/p/9821497.html