单选题

以只读的方式打开文本文件‘a.txt’的代码是?( )

A

f=open('a.txt','r')

B

f=open('a.txt','w')

C

f=open('a.txt','a')

D

f=open('a.txt','r+')

赣ICP备20007335号-2