![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
alexandra103
这个作者很懒,什么都没留下…
展开
-
python 将array转为list
a =New_Image[0].tolist()原创 2020-07-21 14:47:52 · 3312 阅读 · 0 评论 -
获取某一文件夹下的文件
def file_name(file_dir): for root, dirs, files in os.walk(file_dir): print(root) #当前目录路径 print(dirs) #当前路径下所有子目录 print(files) #当前路径下所有非目录子文件path = r'E:\dose_data\train'a = file_name(path)...原创 2020-07-20 15:13:18 · 125 阅读 · 0 评论 -
python 快速在某文件夹下查找文件名包含指定字符串的文件
使用glob快速查找from glob import globpath = r'E:\dose_data\train\20181208'pathrtss1 = glob(f'{path}/rs*.dcm', recursive=True)pathrtss = pathrtss1[0]原创 2020-07-20 14:57:24 · 2417 阅读 · 0 评论