已收藏
收藏
else
- if:如果怎样、如果不怎样
- for、while:循环结束,进入else
- except:没有异常就怎样
i=10 while i>0: print("%s在循环体里" %(i)) i = i - 1 else: print("进入else了,i是%s" %(i))
with
- with open:文件操作
1.要么怎样,要么不怎样
ifelse
2.干完了能怎样,干不完就别想怎样
while/for else
3.没有问题,那就干吧
try except else
4.with
manualof