Python3 Finally 语句 Python3 Write 权限 Python3 通过索引迭代 Python3 Finally 语句 #!/usr/bin/python3 try: fh = open("testfile", "w") fh.write("This is my test file for exception handling!!") finally: print ("Error: can\'t find file or read data") fh.close() Python3 Write 权限 Python3 通过索引迭代