《python怎么在列表中插入元素》有1条评论

  1. >>> sitelist = ['baidu','ali','tencent']
    >>> sitelist.insert(1,'chiplayout')
    >>> print(sitelist)
    ['baidu', 'chiplayout', 'ali', 'tencent']

    回复

发表评论