Last active
December 23, 2015 19:29
-
-
Save zxkletters/6682650 to your computer and use it in GitHub Desktop.
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
### 随机生成大写字母和数字组成的字符串 | |
6U1S75 | |
4Z4UKK | |
U911K4 | |
解决: | |
import string, random | |
''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(N)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment