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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                本任務最初的目的只是為了在測試過程中使用簡單的命令行運行不同的函數,類似運行 “python test_test.py” 運行整個測試,運行 “python test_test.py debug” 來運行測試但是不收集運行結果,請看如下的代碼: ~~~ import unittest import sys class Tests(unittest.TestCase): def testAddOnePlusOne(self): assert 1 == 2 def main(): unittest.TextTestRunner().run(test_suite()) def test_suite(): return unittest.makeSuite(Tests, 'test') def debug(): test_suite().debug() if __name__ == '__main__': if len(sys.argv) > 1: globals()[sys.argv[1]]() else: main() ~~~ 這里如果在命令行中直接運行 “python cookbook_8.py” 就會執行 “main()”;如果在命令行中運行 “python cookbook_8.py debug” 會執行 “debug()”。 “globals()” 返回的是當前全局變量的引用。如果有其它的需求,可以充分利用本任務來延伸!
                  <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>

                              哎呀哎呀视频在线观看