资讯

return "".join (random.choice (characters) for i in range (length)) print (main (32)) This script uses the string and random modules to generate a random password in just five lines of code.