Skip to content

Instantly share code, notes, and snippets.

@wang-zhijun
Last active March 16, 2016 13:37
Show Gist options
  • Save wang-zhijun/7868919 to your computer and use it in GitHub Desktop.
Save wang-zhijun/7868919 to your computer and use it in GitHub Desktop.
Pythonでランダムに8桁のパスワードを生成
#!/usr/bin/env python
from random import choice
import string
def GetPasswd(length=8, chars = string.letters+string.digits):
return ''.join([choice(chars) for i in range(length) ])
@wang-zhijun
Copy link
Author

8桁のランダムのパスワードを生成する

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment