摘要: 一、函数的初始 比如python没有len()方法,如何求字符串的长度使用for循环 s = 'fdshfeigjoglfkldsja' count = 0 for i in s: count += 1 print(count) 执行输出: 19 列表呢? li = [1,2,3,'a','b',' 阅读全文
posted @ 2018-03-28 14:34 肖祥 阅读(946) 评论(2) 推荐(1) 编辑