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

                    ??8?? ???

                    ????

                    ???
                    ???sys???
                    ???????.pyc???
                    from..import???
                    ????__name__
                    ???????__name__
                    ??????????????
                    ??????????????
                    from..import
                    dir()????
                    ???dir????
                    ????

                    ???

                    ?????????????????????ж?????κ???????????????????????????????????ú??????????????α?д????????????????μ?????????????顣?????????????????????????????????????????????????????????????????飬???????????????.py????????

                    ??????????????? ???? ???????????????????????????Python???????????????????????????????????顣

                    ???sys???

                    ??8.1 ???sys???

                    #!/usr/bin/python
                    # Filename: using_sys.py


                    import sys

                    print 'The command line arguments are:'
                    for i in sys.argv:
                        print i

                    print '\n\nThe PYTHONPATH is', sys.path, '\n'

                    ????????code/using_sys.py??

                    ???

                    $ python using_sys.py we are arguments
                    The command line arguments are:
                    using_sys.py
                    we
                    are
                    arguments


                    The PYTHONPATH is ['/home/swaroop/byte/code', '/usr/lib/python23.zip',
                    '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2',
                    '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload',
                    '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/gtk-2.0']

                    ????ι???

                    ?????????????import??? ???? sys??顣????????????????Python?????????????????顣sys??????????Python????????????????й???????

                    ??Python???import sys???????????sys.path?????????????????sys.py??顣????????????????????????????е???佫?????У?????????齫??????? ??? ????????????????????? ????? ?????????????С???????sys?????system??????д??

                    sys????е?argv???????????????????sys.argv???????????????????????????????????κ???????????????argv????????????????????????????????????sys??????????

                    sys.argv???????????????? ?б? ???б??????????????????????????sys.argv?????? ?????в??? ???б????????????д????????????????

                    ????????IDE??д??????Щ???????????????????????????????в??????????

                    ?????????????python using_sys.py we are arguments????????????python????????using_sys.py??飬?????????????????????????????Python?????????洢??sys.argv?????С?

                    ??????????????????sys.argv?б???????????????????????'using_sys.py'??sys.argv[0]??'we'??sys.argv[1]??'are'??sys.argv[2]???'arguments'??sys.argv[3]?????Python??0??????????????1?????

                    sys.path?????????????????б???????????sys.path????????????????????????????????????????sys.path????????????PYTHONPATH????????????????????ζ??????????????λ??????????顣??????e??????????sys.path???е???????


                    ???? ????? ????
                    ???? ??? ???????.pyc???
                    ?????
                    @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>

                                      这里只有精品视频