not :取反
not True;not 1;not 5;等都是False
not False;not 0;是True
if语句
if a >b:print "a"
else:print "b"
a = 3
if a ==1 : print "1"
elif a == 2 : print "2"
elif a == 3 : print "3"
另外 if 语句可以嵌套使用
死循环:
while True:
继续往下执行:continue
not True;not 1;not 5;等都是False
not False;not 0;是True
if语句
if a >b:print "a"
else:print "b"
a = 3
if a ==1 : print "1"
elif a == 2 : print "2"
elif a == 3 : print "3"
死循环:
while True:
继续往下执行:continue