<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 字符串 --- [TOC] ## 基礎 ### 創建 ```python list1 = ['Google', 'Runoob', 1997, 2000]; #生成平方 [x * x for x in range(1, 11)] #[1, 4, 9, 16, 25, 36, 49, 64, 81, 100] ``` ### 訪問 print (list1[0]) #Google print (list2[2:3])#[1997,2000] ### 更新 list[2] = 2001 ### 刪除 del list[2] ### 添加 list1.append("word") ## 腳本操作符 ### 計算長度 len([1, 2, 3]) -> 3 ### 組合 [1, 2, 3] + [4, 5, 6] -> [1, 2, 3, 4, 5, 6] ### 重復 ['Hi!'] * 4 -> ['Hi!', 'Hi!', 'Hi!', 'Hi!'] ### 判斷存在 3 in [1, 2, 3] -> True ### 字符讀取 a = 'hello' a[1] -> e ### 嵌套 a=['a','b','c'] n=[1,2,3] x=[a,n] print(x) ->[['a','b','c'],[1,2,3]]) ### 篩選 l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14] print(l[::3]) -> [0,3,6,9,12] ### 動態導入模塊 try: import json except ImportError: import simplejson print json.dumps({'python':2.7}) >嘗試先導入python自帶的json,沒有就嘗試導入安裝的模塊simplejson
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看