我使用.split()方法从字符串中创建了一个列表.例如:string ="我喜欢鸡"我将使用.split()来创建字符串中的单词列表['I','like','chicken'] 现在,如果我想用其他东西替换'chicken',我可以使用的方法就像.replace( )但是对于一个清单?
['I','like','chicken']
python string methods list
list ×1
methods ×1
python ×1
string ×1