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.
我想异或两个大整数。刚刚安装了 gmpy2 库,但是没有任何地方的 mpz_xor 操作。我错过了什么吗?
Python 有运算符重载,所以他们只是做了它^。我会发布一个演示,但我只能访问 gmpy 1.17,而不是 gmpy2。不过,这是一个显示存在过载的代码链接。^
^