我把这个plist文件放在我的iMac上的launchAgent文件夹中(运行High Sierra),然后使用
加载它import re
import itertools
letterlist = ['GIURELABGIRUGHAWUWORDHGUOIHRUANOTHERKHVUHREIAVHRELGBEIUVIREUVBKWORDGOREGK']
cutters = ['K', 'D']
cutspots = [1, 1]
wordlist = [['WORD'], ['ANOTHERK']]
wordfinder = [[sum(x) for x in zip(*[[len(list(set(itertools.chain(*[[m.start() for m in re.finditer(wordlist[i][j], letterlist[h]) if cutspots[position] == 0 and letterlist[h].endswith(wordlist[i][j]) or letterlist[h][m.start()+len(wordlist[i][j])-abs(0-cutspots[position])] is cutters[position]] for position in range(len(cutters))])) & set(itertools.chain(*[[m.start() for m in re.finditer(wordlist[i][j], letterlist[h]) if cutspots[position] == 1 and letterlist[h].startswith(wordlist[i][j]) or letterlist[h][m.start()-cutspots[position]] is cutters[position]] for position in range(len(cutters))])))) for j in range(len(wordlist[i]))] for h in range(len(letterlist))])] for i in range(len(wordlist))]
它加载很好。但它永远不会发射(它应该每隔5分钟发射一次)。我尝试将日志文件输出,它从未向日志文件写入任何内容。我也重启了我的电脑。我有什么东西在这里失踪吗?我很感激任何帮助。感谢
launchctl load markJunkRead.plist