; 不要问我a=a为什么,自己体会 SetWorkingDir,%a_scriptdir% global GObj_PinYinCode:={} ;拼音码表 IniRead,Py_All,拼音码表.ini,汉字拼音首字表 loop,parse,PY_All,`n GObj_PinYinCode[RegExReplace(A_LoopField,"=.*?$")]:=RegExReplace(A_LoopField,"^.*?=") return SkSub_获取混合字串的首个拼音(字串) { Loop,parse,字串 { if(m:=GObj_PinYinCode[A_loopfield]) n.= "[" m "]" } Return %n% } F9:: ; FileRead,x,d:1212.txt ; FileAppend,%A_now%,d:1212new.txt x:="自行车打气筒" y:=SkSub_获取混合字串的首个拼音(x) MsgBox %y% ; FileAppend,%y%,d:1212new.txt ; FileAppend,%A_now%,d:1212new.txt return