python在列表中添加元素 2020/1/282020/1/26 作者 admin >>> sitelist = ['baidu', 'qq', 'ali'] 修改为 >>> sitelist = ['baidu', 'qq', 'ali', 'chiplayout']
>>> sitelist = ['baidu', 'qq', 'ali'] >>> sitelist.append('chiplayout') >>> print(sitelist) ['baidu', 'qq', 'ali', 'chiplayout'] >>> 回复
>>> sitelist = ['baidu', 'qq', 'ali']
>>> sitelist.append('chiplayout')
>>> print(sitelist)
['baidu', 'qq', 'ali', 'chiplayout']
>>>