![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python和机器学习那些事
水货——鲈鱼
按部就班过每一天,写代码,读论文,跑实验
展开
-
python将目录下的子文件读入excel(可以使.xls和.csv)中
import osfrom xlwt import *file=Workbook(encoding='utf-8')table=file.add_sheet('imageName')path='C:/Users/Administrator/Desktop/2-MICCAI_BraTS_2018/MICCAI_BraTS_Data_Validation'i=0for dirName, subDirList, fileList in os.walk(path): for sub in r原创 2020-08-19 18:36:37 · 171 阅读 · 1 评论 -
Python程序报错Unable to import matplotlib
检查了是否有安装matplotlib包安装成功但是发现程序仍然报错 Unable to import matplotlib使用的是VS code 编写程序,很确定版本这些没有问题,然后开始查找matplotilb安装的位置,发现是在Anaconda上,然后就换了运行方式。Run current File in Python Interactive Windows运行成功...原创 2019-07-17 11:07:11 · 2584 阅读 · 1 评论