摘要: 列表是在Python中是一组数据的集合 如: li = ['jack','tom','jim'] 列表中的数据类型也可以不同 如: li = ['jack',123,'tom',89] 列表中也可以嵌套列表 如: li= ['jack',123,['hello','python',89],'中国'] 阅读全文
posted @ 2018-09-14 20:50 泓谕 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1.capitalize()方法 2.title()方法 3.center()方法 4.count()方法 5.endswith()方法 6.find()方法 7.format()方法: 8.index()方法 9.lower()方法: 10.lstrip()方法: 11.replace()方法: 阅读全文
posted @ 2018-09-14 10:52 泓谕 阅读(516) 评论(0) 推荐(0) 编辑