[python-chinese] Python中的位操作?

Shao Feng sevenever在gmail.com
星期四 八月 2 09:29:42 HKT 2007


那么能限定加减操作的位数吗?两数相加会溢出吗?
比如0xFFFFFFFF + 1 如何能得到0?
自己%0x100000000?

On 8/2/07, 胡小飞 <huxiaofei590在163.com> wrote:
>
>
> 可以的.
>
> http://www.woodpecker.org.cn:9081/doc/abyteofpython_cn/chinese/ch05s02.html
>
>
>
> 在2007-08-02,"Shao Feng" <sevenever在gmail.com> 写道:
>
> 请问Python支持对整形的按位与,或,异或操作吗?如果不支持那么有什么好的变通方法?
> 做一个小东西需要加密,很多位操作。
>
>
>
> ------------------------------
> 人 山 人 海 盛 景,尽 在 梦 幻 西 游 <http://event.mail.163.com/chanel/xyq.htm?from=163_NO6>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20070802/cbf27413/attachment.html 


关于邮件列表 python-chinese 的更多信息