久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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的len函數(shù)什么意思

      python的len函數(shù)用于返回字符串、列表、字典、元組等長度,語法為【len(str)】,其中str是要計算的字符串、列表、字典、元組等。

      python的len函數(shù)什么意思

      本教程操作環(huán)境:windows7系統(tǒng)、python3.9版,DELL G3電腦。

      Python中的len()函數(shù)

      1:作用:返回字符串、列表、字典、元組等長度

      2:語法:

      len(str)

      3:參數(shù):

      str:要計算的字符串、列表、字典、元組等

      4:返回值:字符串、列表、字典、元組等元素的長度

      實例

      1、計算字符串的長度:

      >>> s = "hello good boy doiido" >>> len(s) 21

      2、計算列表的元素個數(shù):

      >>> l = ['h','e','l','l','o'] >>> len(l) 5

      相關(guān)免費學(xué)習(xí)推薦:python視頻教程

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