1.比较两个list大小:operator模块

operator.lt(a, b)
operator.le(a, b)
operator.eq(a, b)
operator.ne(a, b)
operator.ge(a, b)
operator.gt(a, b)
operator.__lt__(a, b)
operator.__le__(a, b)
operator.__eq__(a, b)
operator.__ne__(a, b)
operator.__ge__(a, b)
operator.__gt__(a, b)

 

2.排序 :heapq模块

 

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-10-07
  • 2021-08-18
  • 2021-05-16
  • 2021-11-02
猜你喜欢
  • 2021-11-20
  • 2021-12-26
  • 2021-11-17
  • 2022-01-05
  • 2021-12-09
  • 2021-08-04
相关资源
相似解决方案