Folks,
我已辞去了自己在这个问题上的工作,但我想检查一下是否真的按预期行事。
In the example, "sample.txt" is any multi-line text file that is read and parsed.
try:
file=open( sample.txt , r )
for line in file:
(some action here)
except:
print "Couldn t open file"
file.close()
我观察到的行动是,“mple.txt”是开放的,第1行处理,逻辑随后是“除外”条款。
WAD or is this a bug?