【问题标题】:Python Unsigned Right Shift [duplicate]Python无符号右移[重复]
【发布时间】:2012-07-10 05:06:19
【问题描述】:

可能重复:
How to get the logical right binary shift in python

如何在 python 中执行无符号右移?

I.E. java等价物是这样的:

x >>> y or x >>>= y

【问题讨论】:

    标签: python operators bit-manipulation shift


    【解决方案1】:

    Java 中的整数具有固定位数,但 Python 中没有,因此无符号右移在 Python 中毫无意义。

    【讨论】:

    • 谢谢,我不知道。
    猜你喜欢
    • 1970-01-01
    • 2013-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-28
    • 1970-01-01
    • 2022-01-09
    • 2013-01-03
    相关资源
    最近更新 更多