__rlshift __,__ ror__在Python中 [英] __rlshift__, __ror__ in Python

查看:296
本文介绍了__rlshift __,__ ror__在Python中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,此食谱似乎使用的是__rlshift____ror__运营商.但是,它们不在文档中!任何人都可以解释这些,甚至可以指向一些文档吗?

I noticed that this recipe seems to use __rlshift__, __ror__ like operators. But, they aren't in the documentation! Can anyone explain these and perhaps point to some docs?

推荐答案

请参阅文档:

__rlshift____lshift__的交换操作数版本,当右侧操作数支持该操作但左侧操作数不支持该操作时使用.

__rlshift__ is the swapped operands version of __lshift__, used when the right-hand operand supports the operation but the left-hand operand doesn't.

这篇关于__rlshift __,__ ror__在Python中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆