《python修改列表元素》有1条评论

  1. >>> sitelist = ['baidu','qq','ali']
    >>> sitelist[0] = 'chiplayout'
    >>> print(sitelist)
    ['chiplayout', 'qq', 'ali']

    回复

发表评论