- 博客(1)
- 收藏
- 关注
原创 python中的中英文字符统计
英语字符和中文字符的区别在于:大小写字符和字符个数(中文中是一个词语) 统计英语字符:def getText(): txt=open(‘halmet.txt’,’r’).read() txt=txt.lower() #文中所有英语小写 for ch in ‘!@#$%^&*()<>?”:{}|’: txt = tx...
2018-11-29 21:05:54
1695
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人