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

                    while???

                    ???????????????????£?while?????????????????????while???????ν ??? ????????????while?????????????else???

                    ???while???

                    ??6.2 ???while???

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


                    number = 23
                    running = True

                    while running:
                        guess = int(raw_input('Enter an integer : '))

                        if guess == number:
                            print 'Congratulations, you guessed it.'
                            running = False # this causes the while loop to stop
                        elif guess < number:
                            print 'No, it is a little higher than that'
                        else:
                            print 'No, it is a little lower than that'
                    else:
                        print 'The while loop is over.'
                        # Do anything else you want to do here

                    print 'Done'

                    ????????code/while.py??

                    ???

                    $ python while.py
                    Enter an integer : 50
                    No, it is a little lower than that.
                    Enter an integer : 22
                    No, it is a little higher than that.
                    Enter an integer : 23
                    Congratulations, you guessed it.
                    The while loop is over.
                    Done

                    ????ι???

                    ??????????У??????????????????????????????????????????????????????????????????????????????????????????????????????????β2??????????????????????????????while??????á?

                    ?????raw_input??if????????while????????????while?????????running?????????True?????????????????running????True???????к???? while-?? ????????????????????μ???????????????????У???????running???????????????????????????while-?飬?????????????п????else-?飬?????????????????

                    ??while??????????False?????else??????С??????????????????????????α????????????while????????else?????????????У????????while???????????????????????

                    True??False???????????????????????????Ч???????1??0??????????????????????????????????????????????????1??

                    else??????????????????????????е??????????饗??while??????У?????while??????????????????????Ч????

                    ??C/C++??????????
                    ????????????while???????????else???


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

                                      这里只有精品视频