随笔分类 -  python

摘要:https://blog.csdn.net/qq_21439971/article/details/79356248 python的锁可以独立提取出来 1 2 3 4 5 6 7 8 mutex = threading.Lock() #锁的使用 #创建锁 mutex = threading.Lock 阅读全文
posted @ 2023-09-18 15:34 水木清扬 阅读(142) 评论(0) 推荐(0) 编辑
摘要:path='VOC/images/train' 在windows中需要将路径变成//这种的样子 使用 p = str(Path(p)) p='VOC\\images\\train' parent = str(Path(p).parent) + os.sep str(Path(p).parent)就变 阅读全文
posted @ 2021-03-30 11:14 水木清扬 阅读(208) 评论(0) 推荐(0) 编辑
摘要:path_image = os.listdir(pre_path) shuffle(path_image) 阅读全文
posted @ 2021-01-14 13:21 水木清扬 阅读(1134) 评论(0) 推荐(0) 编辑
摘要:import syssys.path.insert(0,"/media/cbpm2016/E/wangman/caffe_project/caffe/python") 阅读全文
posted @ 2021-01-14 10:13 水木清扬 阅读(1080) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示