小编use*_*110的帖子

Python连接字符串和列表

我有一个列表和字符串:

fruits = ['banana', 'apple', 'plum']
mystr = 'i like the following fruits: '
Run Code Online (Sandbox Code Playgroud)

我如何连接它们以便得到(记住枚举可能会改变大小)'我喜欢以下水果:香蕉,苹果,李子'

python

18
推荐指数
3
解决办法
4万
查看次数

标签 统计

python ×1