Python functools.cmp_to_key(func) 参考:https://blog.csdn.net/asmcvc/article/details/51144428 做一枚奔跑的老少年!