Python是强大的数据处理工具,能方便读写文件。 打开D:\test.csv,文件的内容如下图所示,
>>>s1
'hello python!'
'hello word!'
'hello python!\nhello word!\n'
>>>s2