摘要: 阅读全文
posted @ 2018-11-04 18:55 自由自在多快乐 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: #写函数,计算传入的字符串中【数字】、【字母】、【空格】以及【其他】的个数,并返回结果# def func(s):# # num = 0# # alpha = 0# # space = 0# # other = 0# dic = {'num':0,'alpha':0,'space':0,'other 阅读全文
posted @ 2018-11-04 17:54 自由自在多快乐 阅读(2263) 评论(0) 推荐(0) 编辑