在try、raise 陳述句中有個讀取檔案的範例: file = open('demo.py', 'r', ... 語句,實際上,在Python 3(或2.6)中,你可以使用with as語句來簡化程式的撰寫:
確定! 回上一頁