标签:style blog http color os io ar 2014 art
flag = 1 while 1: flag = flag + 1 if flag > 10: break try: f = open("file-not-exists", "r") except IOError,e: print("open exception: %s\n" %(e)) print "end while" print "end"
可以看得到处理掉之后程序不会中间断掉
标签:style blog http color os io ar 2014 art
原文地址:http://www.cnblogs.com/super-d2/p/3958591.html