摘要: map<string, int> m; const char K[] = "key"; void fn1 () { auto p = m.insert({K, 0}); ++(p.first->second); } void fn2 () { auto it = m.find(K); if (it 阅读全文
posted @ 2025-11-08 14:41 华容道专家 阅读(3) 评论(0) 推荐(0)
摘要: 〔CMPH〕- C Minimal Perfect Hashing Library 装起来很方便。apt list有:libcmph0 libcmph-dev libcmph-tools 测试数据是229837个词,从 意义 一一 ... 中航技进出口有限责任公司 2MB 在Intel N100上, 阅读全文
posted @ 2025-11-08 14:04 华容道专家 阅读(6) 评论(0) 推荐(0)
摘要: import sys import requests from bs4 import BeautifulSoup as BS def get_links (url): links = [] try: r = requests.get(url); r.raise_for_status() # 失败抛出 阅读全文
posted @ 2025-11-08 09:20 华容道专家 阅读(10) 评论(0) 推荐(0)
摘要: 翁学天 (Xuetian Weng, CSSlayer),写了scel2org (fcitx-tools的一部分)。 我把他的.c程序挪了出来,不用装别的,gcc scel2org.c即可编译: 〔这里〕可下载 scel2org.c utarray.h uthash.h utils.h 补充:uth 阅读全文
posted @ 2025-11-08 00:13 华容道专家 阅读(6) 评论(0) 推荐(0)