这个用json模块就可以了,看我的文章吧里面有
https://blog.csdn.net/oSuiYing12/article/details/106356147
numpy可以直接读txt文件吧,至于后面target是按什么统计的,我就不知道了。