平常Coding过程中,经常使用到的with场景是(打开文件进行文件处理,然后隐式地执行了文件句柄的关闭,同样适合socket之类的,这些类都提供了对with的支持): with file('test.py','r') as f : print f.readline() with的作用,类似try. Read More
posted @ 2016-04-15 11:56 超超xc Views(402) Comments(0) Diggs(0) Edit
I suppose,were childrenonec.