python修改列表元素 2020/1/282020/1/26 作者 admin python修改列表元素 如把 sitelist = ['baidu','qq','ali'] 改为 sitelist = ['chiplayout','qq','ali']
>>> sitelist = ['baidu','qq','ali'] >>> sitelist[0] = 'chiplayout' >>> print(sitelist) ['chiplayout', 'qq', 'ali'] 回复
>>> sitelist = ['baidu','qq','ali']
>>> sitelist[0] = 'chiplayout'
>>> print(sitelist)
['chiplayout', 'qq', 'ali']