久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      python中remove函數(shù)的用法是什么?

      python中remove函數(shù)的用法是什么?

      python中remove函數(shù)的用法是什么?

      python中remove函數(shù)的用法:

      描述

      remove() 函數(shù)用于移除列表中某個值的第一個匹配項。

      語法

      remove()方法語法:

      list.remove(obj)

      參數(shù)

      obj — 列表中要移除的對象。

      返回值

      該方法沒有返回值但是會移除列表中的某個值的第一個匹配項。

      實例

      以下實例展示了 remove()函數(shù)的使用方法:

      #!/usr/bin/python aList = [123, 'xyz', 'zara', 'abc', 'xyz']; aList.remove('xyz'); print "List : ", aList; aList.remove('abc'); print "List : ", aList;

      以上實例輸出結(jié)果如下:

      List :  [123, 'zara', 'abc', 'xyz'] List :  [123, 'zara', 'xyz']

      推薦教程:《python視頻教程》

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號