#使用迴圈,一行一行讀取exp6-1.py的所有內容 #r= read, t=text純文字檔 a1 = open('exp6-1.py','rt',encoding='utf-8') #不需要a1.read() for line in a1: print(line) a1.close()