循环

#!/usr/bin/env python
# -*- coding: utf-8 -*-

i = 1
while i < 11:
if i == 7:
i = i + 1
continue
print(i)
i = i + 1
#!/usr/bin/env python
# -*- coding: utf-8 -*-

i = 1
while i < 11:
    if i == 7:
        i = i + 1
        continue
    print(i)
    i = i + 1

 

posted @ 2017-05-06 02:39  Bruce.yin  阅读(91)  评论(0编辑  收藏  举报