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

                    ???????????????

                    ??????????????????????????????????????????????????????????????????????????з???????Щ?????????????????????????????????????????????????

                    ??????????????????????str?????????????Щ???????????????????????????????????????Щ???????????б????μ?help(str)??

                    ??????????

                    ??9.7 ??????????

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


                    name = 'Swaroop' # This is a string object

                    if name.startswith('Swa'):
                        print 'Yes, the string starts with "Swa"'

                    if 'a' in name:
                        print 'Yes, it contains the string "a"'

                    if name.find('war') != -1:
                        print 'Yes, it contains the string "war"'

                    delimiter = '_*_'
                    mylist = ['Brazil', 'Russia', 'India', 'China']
                    print delimiter.join(mylist)

                    ????????code/str_methods.py??

                    ???

                    $ python str_methods.py
                    Yes, the string starts with "Swa"
                    Yes, it contains the string "a"
                    Yes, it contains the string "war"
                    Brazil_*_Russia_*_India_*_China

                    ????ι???

                    ??????????????????????????????startwith?????????????????????????????????????in????????????????????????????????????????????????

                    find?????????????????????????????????е?λ??????????-1??????????????????str????????????????????????join???е??????????????????????????????????????


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

                                      这里只有精品视频