如果list里面是str的话,直接用join()函数来加入空格 a =["Geeks", "for", "Geeks"] print(' '.join(a)) # 如果是数字的话,先转换为str a = [1, 2, ...
確定! 回上一頁