Python学习:列表,元组,字符串如何互相转换
2016-11-01 17:23
681 查看
str转list
list转str
tuple list相互转换
list = list(str)
list转str
str = ''.join(list)
tuple list相互转换
tuple = tuple(list) list = list(tuple)
相关文章推荐
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表 元组 字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- python中列表,元组,字符串如何互相转换
- Python中列表、元组、字符串的互相转换
- Python字符串、元组、列表、字典互相转换的方法
- Python字符串、元组、列表、字典互相转换的方法
- python学习之路-字符串(str)和列表(list)的互相转换
- python中列表,元组,字符串 互相转换
- python中列表,元组,字符串互相转换
- 【知识】Python中字符串、元组、列表、字典的互相转换
- Python字符串、元组、列表、字典互相转换的方法
- Python字符串、元组、列表、字典互相转换的方法
- python 学习笔记 二 序列, 列表, 元组, 字符串
- python中列表元组字符串相互转换