results[keyword].append(result) empty = False else: results[keyword].append([(None, ) * 7 + ("∞", )]) if empty: # 不汇报无泄漏的关键字 results.pop(keyword) DB.conn.close() if send_flag: # 为 0 时说明 所有关键字都无泄漏 print("[Info] Send email") c = GenerateHTML(results) for email_addr in config["receiver_email"]: r.alert(c, email_addr) with open(file_url + "result.html", 'w') as fp: fp.write(c) else: print("[Info] Nothing to do") ''' results 示例: {'qiniu 密码': [('www.github.com/nicoson/CNR-Video-Audit/blob/master/README.md', '0f00caf3b2bc2828428b568148b1939bdce5f6c6', 'nicoson/CNR-Video-Audit', 'qiniu 密码', 'README.md', '3', '1542811078',