2018-11-28
阅读量:
892
组合多个字符串
如果你想拼接列表中的所有 token,那么看看下面的例子就明白了:
>>> test = ['I', 'Like', 'Python', 'automation']
现在我们从上面列表的元素中创建一个字符串:
>>> print ''.join(test)






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论