Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试优化一个存储单词及其计数的函数。到目前为止,Python 的实现相当缓慢。我正在尝试对功能进行cythonize。我们在 cython 中对应于 defaultdict 还有哪些其他选择?