在 Python 中,可以使用下面代码读取文件中的数据到列表 。
file = open('score.csv','r')
name = file.read().strip('\n').split(',')
file.close()