Python Loop printing

Source: Internet
Author: User

1 #!/usr/bin/env python2 #-*-coding:utf-8-*-3 #@Time: 2016/10/2 15:474 #@Author: Derby5 #@File: whileloop.py6 7Count=08  whileTrue:9Count + = 1Ten     ifCount >50 andCount<60 : One         Continue A     Print("you are the wind, I am the sand, wrapped around the horizon", Count) -     " " - Else: the print ("This is a diedloop?", Count) - count + = 1 -     " " -     ifcount==100: +         Print("Haha,this is good loop!") -          Break
Print Printing

Test additional code viewing methods

Way One:

#!/usr/bin/env python#-*-coding:utf-8-*-# @Time    : 2016/10/2 15:47# @Author  : derby# @File    : Whileloop.pyc Ount=0while True:    count + = 1    if Count >50 and count<60:        continue    print ("You are the wind I am the sand, tangled up to the horizon", Count)    "    Else:        print (" This is a diedloop? ", Count)    count + = 1    "    if  count==100 :        Print ("Haha,this is Good loop!")        Break

  

Python Loop printing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.