lanhuermao's recent timeline updates
lanhuermao

lanhuermao

V2EX member #39732, joined on 2013-05-27 10:29:19 +08:00
lanhuermao's recent replies
Jun 14, 2023
Replied to a topic by smdbh Python Python 的一个类能不能和一个 tuple 比较且相等
可以的,楼上几位已经说的很清楚了,Python 中的等于比较本质上是对象的 `__eq__` 方法在运算。
类似的还有:
__ne__: 不等于
__gt__: 大于
__ge__: 大于等于
__lt__: 小于
__le__: 小于等于
up
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   909 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 19:37 · PVG 03:37 · LAX 12:37 · JFK 15:37
♥ Do have faith in what you're doing.