#!/usr/bin/python
# _*_ coding:UTF-8 _*_ #设置编码
#if语句
a = 10
b = 20
if a==b:
print "a和b相等"
else:
print "a和b不相等"
c=10;
if a!=c:
print "a和c相等"
elif a!=b:
print "a和b不相等"
else:
print "其它情况"
#while循环语句
count=1
while count<9:
print "the count is:",count
count+=1
else:
print "the count not less then 9"
print "Good bye!"
#for循环语句
for letter in "Python":
print '当前字母:', letter
list=[1,2,3,4,5,6]
for num in list:
if num==3:
print "现在到3了"
continue
if num==5:
print "现在到5结束了"
break
print '当前数字:', num