<pre id="vvttv"><mark id="vvttv"><progress id="vvttv"></progress></mark></pre>
    <pre id="vvttv"></pre>

      <p id="vvttv"></p>

          <p id="vvttv"></p>

                <p id="vvttv"></p>

                <pre id="vvttv"><cite id="vvttv"><progress id="vvttv"></progress></cite></pre>

                  <output id="vvttv"><dfn id="vvttv"><th id="vvttv"></th></dfn></output>

                    <p id="vvttv"></p>

                    ???? Python ???
                    ??8?? ???
                    ???? dir()???? ????

                    dir()????

                    ?????????????dir???????г???鶨???????????????к?????????????

                    ?????dir()???????????????????????鶨????????б???????????????????????????ж?????????б??

                    ???dir????

                    ??8.4 ???dir????

                    $ python
                    >>> import sys
                    >>> dir(sys) # get list of attributes for sys module
                    ['__displayhook__', '__doc__', '__excepthook__', '__name__', '__stderr__',
                    '__stdin__', '__stdout__', '_getframe', 'api_version', 'argv',
                    'builtin_module_names', 'byteorder', 'call_tracing', 'callstats',
                    'copyright', 'displayhook', 'exc_clear', 'exc_info', 'exc_type',
                    'excepthook', 'exec_prefix', 'executable', 'exit', 'getcheckinterval',
                    'getdefaultencoding', 'getdlopenflags', 'getfilesystemencoding',
                    'getrecursionlimit', 'getrefcount', 'hexversion', 'maxint', 'maxunicode',
                    'meta_path','modules', 'path', 'path_hooks', 'path_importer_cache',
                    'platform', 'prefix', 'ps1', 'ps2', 'setcheckinterval', 'setdlopenflags',
                    'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout',
                    'version', 'version_info', 'warnoptions']
                    >>> dir() # get list of attributes for current module
                    ['__builtins__', '__doc__', '__name__', 'sys']
                    >>>
                    >>> a = 5 # create a new variable 'a'
                    >>> dir()
                    ['__builtins__', '__doc__', '__name__', 'a', 'sys']
                    >>>
                    >>> del a # delete/remove a name
                    >>>
                    >>> dir()
                    ['__builtins__', '__doc__', '__name__', 'sys']
                    >>>

                    ????ι???

                    ???????????????????????sys????????dir???????????????????????????б??

                    ???????????????dir????????????????????????????????????????????б???????????????????б????????

                    ?????dir??????????????????μ????a?????????????????????dir???????????б????????????????????????????del?????????????е????/?????????仯????η????dir??????С?

                    ????del??????????????????????к????? ??? ???????/???????????????У?del a???????????????a????????????????д?????????


                    ???? ????? ????
                    ?????????????? ??? ????
                    ?????
                    @ssv

                      <pre id="vvttv"><mark id="vvttv"><progress id="vvttv"></progress></mark></pre>
                      <pre id="vvttv"></pre>

                        <p id="vvttv"></p>

                            <p id="vvttv"></p>

                                  <p id="vvttv"></p>

                                  <pre id="vvttv"><cite id="vvttv"><progress id="vvttv"></progress></cite></pre>

                                    <output id="vvttv"><dfn id="vvttv"><th id="vvttv"></th></dfn></output>

                                      <p id="vvttv"></p>

                                      这里只有精品视频