问题:
I want to generate a string of size N. 我想生成一个大小为N的字符串。
It should be made up of numbers and uppercase English letters such as: 它应该由数字和大写英文字母组成,例如:
- 6U1S75 6U1S75
- 4Z4UKK 4Z4UKK
- U911K4 U911K4
How can I achieve this in a pythonic way? 我如何以pythonic方式实现这一目标?
解决方案:
参考一: https://stackoom.com/question/9TGL/具有大写字母和数字的随机字符串生成参考二: https://oldbug.net/q/9TGL/Random-string-generation-with-upper-case-letters-and-digits
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3222575