So Python provides this nice with syntax to make sure the file will be closed whatever the outcome. with open("file.txt") as f: raise Exception # Python ...
確定! 回上一頁