zl程序教程

您现在的位置是:首页 >  后端

当前栏目

可以指定要生成的密码长度的Python代码详解编程语言

2023-06-13 09:20:24 时间
def check_prev_char(password, current_char_set): """Function to ensure that there are no consecutive UPPERCASE/lowercase/numbers/special-characters.""" index = len(password) if index == 0: return False else: prev_char = password[index - 1] if prev_char in current_char_set: return True else: return False if __name__ == __main__: print generate_pass()

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/8470.html

cjavapython