首页 > 编程语言 > 详细

python--生成随机字符串

时间:2020-05-27 22:22:37      阅读:40      评论:0      收藏:0      [点我收藏+]
import random,string
ran_str = ‘‘.join(random.sample(string.ascii_letters + string.digits, 43))
print(ran_str)

随机生成43位a-zA-Z0-9字符串

python--生成随机字符串

原文:https://www.cnblogs.com/lutt/p/12976756.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!