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

                    ?ο?

                    ?????????????????????????????????????????? ?ο? ?????????????????????????????????????????????????д洢??????????檔????????????????????

                    ???????????????????????????ο?????Щ????Ч???????????????????????????????????

                    ??????ο?

                    ??9.6 ??????ο?

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


                    print 'Simple Assignment'
                    shoplist = ['apple', 'mango', 'carrot', 'banana']
                    mylist = shoplist # mylist is just another name pointing to the same object!

                    del shoplist[0]

                    print 'shoplist is', shoplist
                    print 'mylist is', mylist
                    # notice that both shoplist and mylist both print the same list without
                    # the 'apple' confirming that they point to the same object


                    print 'Copy by making a full slice'
                    mylist = shoplist[:] # make a copy by doing a full slice
                    del mylist[0] # remove first item

                    print 'shoplist is', shoplist
                    print 'mylist is', mylist
                    # notice that now the two lists are different

                    ????????code/reference.py??

                    ???

                    $ python reference.py
                    Simple Assignment
                    shoplist is ['mango', 'carrot', 'banana']
                    mylist is ['mango', 'carrot', 'banana']
                    Copy by making a full slice
                    shoplist is ['mango', 'carrot', 'banana']
                    mylist is ['carrot', 'banana']

                    ????ι???

                    ???????????????????????????????????????????????????????б????????????л???????????????????????????????? ???? ?????????????????????????????????????????????????????????????????????? ?ο? ????????????????С????????????????????鷳??

                    ??Perl??????????
                    ????б???????????????????????????????????????????е??????


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

                                      这里只有精品视频