str1 = "hi hello world" print(str1.split(" "))输出:[‘hi‘, ‘hello‘, ‘world‘]
l = ["hi","hello","world"] print(" ".join(l))输出:hi hello world
python 基础 列表 字符串转换
原文:http://www.cnblogs.com/guxiaobei/p/7739729.html