单选题:以下哪一项可以正确打开users.txt文件写入数据?
以下哪一项可以正确打开users.txt文件写入数据?
@[C](2)
A. outfile = open('w', users.txt)
B. outfile = write('users.txt', 'w')
C. outfile = open('users.txt', 'w')
D. outfile = open('users.txt')
A.outfile = open('w', users.txt)
B.outfile = write('users.txt', 'w')
C.outfile = open('users.txt', 'w')
D.outfile = open('users.txt')
答案:C
@[C](2)
A. outfile = open('w', users.txt)
B. outfile = write('users.txt', 'w')
C. outfile = open('users.txt', 'w')
D. outfile = open('users.txt')
A.outfile = open('w', users.txt)
B.outfile = write('users.txt', 'w')
C.outfile = open('users.txt', 'w')
D.outfile = open('users.txt')
答案:C