Python modifying `__lt__` outside of class definition

前端 未结 0 1783
走了就别回头了
走了就别回头了 2021-02-05 01:35

I have a file with defines a class X, and inside that class there is a definition for def __lt__(self, other):.

In another file, I have a heapq

相关标签:
回答
  • 消灭零回复
提交回复
热议问题