摘要: 1、模拟一个len函数实现 #重复代码多,可读性差li = {1,2,3,4,'alex'} count = 0 for i in li: count += 1 print(count)#测量字符串长度s1 = '12321321312312312'count = 0for i in s1: cou 阅读全文
posted @ 2018-04-19 09:39 张腾飞♂ 阅读(163) 评论(0) 推荐(0) 编辑