byzod 最近的时间轴更新
byzod

byzod

V2EX 第 95124 号会员,加入于 2015-02-01 13:43:00 +08:00
byzod 最近回复了
19 天前
回复了 realpg 创建的主题 程序员 一次 github 跟开源大佬的抬杠经历
局→句
话说 v2 评论不能 markdown 就罢了,怎么连编辑都没有啊(恼
19 天前
回复了 realpg 创建的主题 程序员 一次 github 跟开源大佬的抬杠经历
@LonnyWong
点进去之前脑补的场景:技术问题交流不畅,来回拉扯百十回合,3 页之后恼羞成怒开喷

实际的场景:聊了 3 局,开喷

喷就罢了,还挂自己,多少有点大病……人类的多样性真不是吹的🤣
项目要是能统一编码,我觉得 key 用中文也没啥
正好之前写了个蛋疼的“根据 id 分组并统计作品数量阈值挑选一张每个艺术家最新的作品”
你改改就能用了

```
#Requires Autohotkey v2.0+
#SingleInstance Force

SrcFolder := "Q:\Doc\Pic\#Pixiv"
DestFolder := "Q:\Doc\Pic\#Pixiv\#Index"
idRegex := "^(\d+)\s+-\s+.+$" ; id as group 1
Threshold := 20

IdList := Map()
Loop Files, SrcFolder . "\*.*", "F"
{
; 处理文件列表
fileName := Trim(A_LoopFileName)
matchArray := {}
match := RegExMatch(fileName, idRegex, &matchArray)
if (match) {
id := matchArray[1]
if (!IdList.Has(id)) {
IdList.Set(id, IdInfo(id, 1, A_LoopFilePath))
} else {
IdList.Get(id).count += 1
IdList.Get(id).latestFile := A_LoopFilePath
IdList.Get(id).latestFileName := fileName
}
}
}

; 阈值过滤
IdListPicked := Map()
for id, info in IdList
{
if (info.count >= Threshold)
{
IdListPicked.Set(id, info)
}
}

; 移动
debug_pickArtStr := "" ;debug
if (IdListPicked.Count > 0){
try FileDelete(DestFolder . "\*.*")
try DirCreate(DestFolder)
for id, info in IdListPicked
{
if(FileExist(info.latestFile)) {
FileCopy(info.latestFile, DestFolder)
; debug_pickArtStr .= info.count . ": " . info.latestFileName . "`n" ;debug
}
}
}

; 输出到文件
; 输出处理完成的消息
MsgBox("文件处理完成`n`n"
"作品数量阈值" . Threshold . "`n 共" . IdListPicked.Count . "艺术家符合"
)
; MsgBox(debug_pickArtStr) ;debug


Class IdInfo {
id := 0
count := 0
latestFile := ""
__New(id:=0, count:=0, latestFile:="", latestFileName:="") {
this.id := id
this.count := count
this.latestFile := latestFile
this.latestFileName := latestFileName
}
}

ExitApp

```
@deepblueai 雀食
54 天前
回复了 dence 创建的主题 Firefox 有没有办法让火狐兼容 Chrome 网站
Chrome 网站这种说法都出来了
社么勇者终将成为恶龙
不是,你传文件随便 7z 压一下然后手写个临时密码不就好了
一次性密码本是不可能被破解的
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1123 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 23:44 · PVG 07:44 · LAX 15:44 · JFK 18:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.