#!/usr/bin/python. ## Open file. fp = open('filename.txt', "r"). # 變數lines 會儲存filename.txt 的內容. lines = fp.readlines(). # close file.
確定! 回上一頁