問題詳情

22. 關於 Python 語言讀取檔案,下列敘述何者「不正確」?
(A) 使用 open('file', 'r'),若 file 不存在會創建 file
(B) 使用 open('file', 'w'),若 file 不存在會創建 file
(C) 使用 open('file', 'w+')為可讀寫的檔案模式
(D) 使用 open('file', 'a+')為附加讀寫檔案模式,寫入時添加於後,亦可以讀檔

參考答案

答案:A
難度:計算中-1
書單:沒有書單,新增