Python生成16位的英文大小写和数字的随机数


import string
import random

str_list = [random.choice(string.digits + string.ascii_letters) for i in range(16)]
random_str = ''.join(str_list)
print(random_str)

 


————————————————
原文链接:https://blog.csdn.net/weixin_44306005/article/details/107911461

posted @ 2021-07-11 14:09  cforcnb  阅读(618)  评论(0)    收藏  举报