会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Maxs147
博客园
首页
新随笔
联系
订阅
管理
2021年3月16日
Python首先生成包含1000个随机字符的字符串,然后统计每个字符的出现次数。(使用字典)
摘要: 1.代码: import stringimport randomx = string.ascii_letters + string.digits + string.punctuation#String模块ascii_letters和digits方法,# 1.ascii letters方法的作用是生成
阅读全文
posted @ 2021-03-16 20:21 Maxs147
阅读(4301)
评论(0)
推荐(1)
公告