單項選擇題

在Python中,如何讀取一個文件的內(nèi)容?()

A.with open(file,’r’)as f:content =f read()
B.file.read()
C.open(file,’r’).read()
D.A和C都對

微信掃碼免費搜題