标签:输出 打印 style 结果 bre his == stat int
‘’‘ ’‘’‘三引号:打印多行
python中有组合
while 条件:
....
else:
....
num = 1
while num <= 10:
num += 1
if num == 5:
break
print(num)
else:
print("This is else statement")
有break
输出结果为:
2
3
4
没有break输出结果都有 This is else statement
continue:
有不执行本行,执行下一行的意思
标签:输出 打印 style 结果 bre his == stat int
原文地址:http://www.cnblogs.com/NewPigJack/p/7341809.html