12 2024 档案

摘要:代码如下: import os import pandas as pd def rename_files_based_on_excel(excel_path, folder_path, id_column='id', old_name_column='ori_name', new_name_colu 阅读全文
posted @ 2024-12-23 17:54 ZerlinM 阅读(43) 评论(0) 推荐(0)
摘要:使用antd Image加载多张图片时,遇到网络之类的问题,导致图片加载失败,希望能重试3次,之后再展示默认图片 代码如下: const retry = {} const handleError = (e, id, url) => { let cur = retry[id] retry[id] = 阅读全文
posted @ 2024-12-18 16:05 ZerlinM 阅读(193) 评论(0) 推荐(0)
摘要:安装mozjpeg npm install mozjpeg -g 压缩单个文件 命令 mozjpeg -quality 75 -outfile C:\\Users\\xxx\\Downloads\\img\\press\\pump1_1.jpg C:\\Users\\xxx\\Downloads\\ 阅读全文
posted @ 2024-12-18 15:12 ZerlinM 阅读(120) 评论(0) 推荐(1)
摘要:问题 执行 subprocess.run(command, check=True) 时报错 File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_chi 阅读全文
posted @ 2024-12-18 15:05 ZerlinM 阅读(508) 评论(0) 推荐(0)
摘要:问题 项目中使用antd的ProTable表格,在打印时发现表头不全,如下图: 表格有5列,但表头只展示了3列,审查元素发现table下有个colgroup来控制表头宽度 解决 修改代码: 在打印时隐藏colgroup即可 @media print { colgroup { display: non 阅读全文
posted @ 2024-12-04 10:34 ZerlinM 阅读(94) 评论(0) 推荐(0)