摘要: 1. str int 字符串中必须都是十进制的数,才能进行转换 2. int str 3. str list 面试题: 把字符串转换成列表 print(s.split()) 把列表转换成字符串 print(''.join(li)) 4. list str 5. list tuple 6. tuple 阅读全文
posted @ 2019-06-12 21:27 God_with_us 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1. 首字母大写 2.每个单词首字母大写 title 3,统计出现的次数 count 4.大小写转换 swapcase 5.查找(通过元素名字找到元素的索引) 6.list 7.统计 8.查看 9.反转 10.排序 11.tuple,统计,查找 12.dict: 13.批量创建字典 14.set: 阅读全文
posted @ 2019-06-12 21:26 God_with_us 阅读(132) 评论(0) 推荐(0) 编辑