1、1.用set而非list代码

2、2.
用dict而非两个list进行匹配查找代码

3、3.
用for而非while

4、4.
用numba加速Python函数


5、5.
用map加速Python函数

6、6.
用filter加速Python函数

7、7.用np.where加速if函数

1、1.用set而非list代码

2、2.
用dict而非两个list进行匹配查找代码

3、3.
用for而非while

4、4.
用numba加速Python函数


5、5.
用map加速Python函数

6、6.
用filter加速Python函数

7、7.用np.where加速if函数
