1. 字符串转列表
str1 = "hi hello world"
arry = str1.split(" ")
print arry, type(arry) # 结果:['hi', 'hello', 'world'] <type 'list'>
2. 列表转字符串
arry = ["hi","hello","world"]
str2 = " ".join(arry)
print str2, type(str2) # 结果:hi hello world <type 'str'>