单选题

Python是强大的数据处理工具,能方便读写文件。 打开D:\test.csv,文件的内容如下图所示,

>>>f=open(r"D:\test.csv",'r')

>>>s1=f.read()

>>>s2=f.read()

>>>f.close()

运行上述程序,说法正确的是?( )

A

>>>s1

'hello python!'

B

>>>s1

'hello word!'

C

>>>s1

'hello python!\nhello word!\n'

D

>>>s2

'hello python!\nhello word!\n'

赣ICP备20007335号-2