try /except/finally statements. try: f = open("testfile.txt") except FileNotFoundError as e: print(f" Error while reading file {e} ...
確定! 回上一頁