我正在制作一个小程序,用户在其中创建一个帐户,但是由于某种原因,在代码传递的这一部分中,没有人可以解释这一点吗?
def create_password():
while True:
password = '#'
not_allowed_characters = '!#¤%&/()=?^\'.,<>'
for c in list(password):
0 + 0
if c in not_allowed_characters:
print(c + ' is not allowed')
pass #pass does nothing how can i fix this
if 0 is 0:
print(1)
create_password()
ITMISS
相关分类