12 2023 档案

摘要:参考 https://blog.csdn.net/a237072751/article/details/124599426 源代码: https://github.com/huggingface/pytorch-image-models/pull/140/commits/a7f570c9b72369 阅读全文
posted @ 2023-12-18 16:53 容_易 阅读(388) 评论(0) 推荐(0) 编辑
摘要:vscode调试python时出现import其他文件夹找不到路径的报错,需要设置正确的working directory (cwd)和PYTHONPATH(env) { "version": "0.2.0", "configurations": [ { "name": "Python: Curre 阅读全文
posted @ 2023-12-15 17:05 容_易 阅读(489) 评论(0) 推荐(0) 编辑
摘要:要查找lines列表中重复的行并将其打印出来,您可以使用Python的collections.Counter()函数来统计每行出现的次数。然后,遍历统计结果,找出出现次数大于1的行,并打印出来。 以下是一个示例代码: import os from collections import Counter 阅读全文
posted @ 2023-12-07 10:21 容_易 阅读(44) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash search_list='xx/search_list.txt' list='xx/revise_list.txt' result='xx/result.txt' # 逐行读取list文件 while IFS= read -r line; do # 在search_list文 阅读全文
posted @ 2023-12-05 15:24 容_易 阅读(41) 评论(0) 推荐(0) 编辑

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