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.
我想btest在 Python 中使用与 Fortran 中的函数等效的函数。你知道有什么我可以用的吗?
btest
我认为是这样的:
def btest(i, pos): return i & (1 << pos)