<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] # 沒有`__all__` study.py ~~~ class Test(object): def test(self): print("---Test類中的test函數---") def test1(): print("---test1函數---") def test2(): print("---test2函數---") ~~~ main.py ~~~ from study import * a = Test() a.test() test1() test2() ~~~ 輸出 ~~~ ---Test類中的test函數--- ---test1函數--- ---test2函數--- ~~~ # 有`__all__` ~~~ __all__ = ["Test", "test1"] class Test(object): def test(self): print("---Test類中的test函數---") def test1(): print("---test1函數---") def test2(): print("---test2函數---") ~~~ ~~~ from study import * a = Test() a.test() test1() test2() ~~~ 輸出 ~~~ Traceback (most recent call last): ---Test類中的test函數--- File "/Users/jdxia/Desktop/study/py/Car.py", line 8, in <module> ---test1函數--- test2() NameError: name 'test2' is not defined ~~~ 如果一個文件中有`__all__`變量,那么也就意味著這個變量中的元素,會被`from xxx import *`時導入 test2不在里面,所以不能使用
                  <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>

                              哎呀哎呀视频在线观看