单选题:(样卷)下面哪种方法读文件“input.txt”是正确的.
(样卷)下面哪种方法读文件“input.txt”是正确的.
@[C](2)
A. in_file = open('input.txt','w')
B. in_file = open('input.txt',r)
C. in_file = open('input.txt','r')
D. 都不正确.
A.in_file = open('input.txt','w')
B.in_file = open('input.txt',r)
C.in_file = open('input.txt','r')
D.都不正确.
答案:C
@[C](2)
A. in_file = open('input.txt','w')
B. in_file = open('input.txt',r)
C. in_file = open('input.txt','r')
D. 都不正确.
A.in_file = open('input.txt','w')
B.in_file = open('input.txt',r)
C.in_file = open('input.txt','r')
D.都不正确.
答案:C