字符串转列表str = "1 2 3"num = str.split(" ")#split以空格区分字符串print(num)列表转字符串l = ['abc','efg','hig']print(" ".join(l))#以空格分开字符串