Last active
August 29, 2015 14:13
-
-
Save Thithip/123b63450aba6eca38c8 to your computer and use it in GitHub Desktop.
Python : Génération d'un mot de passe aléatoire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
pwd = ''.join([string.ascii_letters.__add__(string.digits) [random.randint(0,len(string.ascii_letters+string.digits) -1) ] for i in range(10)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment