file = open('demo.py', 'r', encoding='UTF-8') try: for line in file: print(line, end='') except: print('讀取檔案發生錯誤') finally: file.close()
確定! 回上一頁