题库 Python题库 题目列表 以只读的方式打开文本文件‘a.txt’的代码是?( )
单选题

以只读的方式打开文本文件‘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+')

题目信息
2023年 12月 选择题
-
正确率
0
评论
84
点击