会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
是阿杰呀
study hungry,study foolish.
首页
新随笔
联系
管理
【Python】random随机生成多位数字
1. random随机生成多位数字
import random str1 = ''.join([str(i) for i in random.sample(range(0,9), 6)]) # 随机生成六位
posted @
2023-01-06 10:27
是阿杰呀
阅读(
166
) 评论(
0
)
收藏
举报
刷新页面
返回顶部