判断题

file=open('fruits.csv','r')

name=file.read().strip('\n').split(',')

file.close()

上述代码的功能是读取文件中的数据到列表。 ( )

A 正确
B 错误
赣ICP备20007335号-2