for file in os.listdir('yolov3_tiny_car_det/output'):
            fsize = os.path.getsize(f'yolov3_tiny_car_det/output/{file}')
            if (fsize<40000):
                os.remove(f'yolov3_tiny_car_det/output/{file}')
yolov3_tiny_car_det/output为目录,40000指字节

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-12-15
  • 2021-12-09
  • 2022-01-31
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案