python中检测mysql的主键唯一性异常 参考文章: (1)python中检测mysql的主键唯一性异常 (2)https://www.cnblogs.com/foreverlin/p/10840929.html 备忘一下。