str1 = "hi hello world" print(str1.split(" "))输出:['hi', 'hello', 'world']
l = ["hi","hello","world"] print(" ".join(l))输出:hi hello world
posted on 2018-09-14 07:07 羽竹 阅读(1023) 评论(0) 编辑 收藏 举报