随笔分类 -  Python

python学习
Python练习一
摘要:#给一个字符串,统计其中的数字、字母和其他类型字符的个数r=raw_input("请输入一个字符串:")num=0str=0oth=0for i in r: if (i.isdigit()): num = num+1 continue elif (i.isalpha()): str = str+1 阅读全文
posted @ 2017-06-21 10:19 陈小多多 阅读(60) 评论(0) 推荐(0)