目录
13.W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
14. R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
15.R0915: Too many statements (170/50) (too-many-statements)
11.R1714: Consider merging these comparisons with 'in' by using 'g in ('last_range', 'last_step')'. Use a set instead if elements are hashable. (consider-using-in)
这是让用 in的方式来优化代码,这...
12. R1731: Consider using 'width_one_subplot = max(width_one_subplot, 2)' instead of unnecessary if block (consider-using-max-builtin)
又是代码优化..
13.W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
open使用需要显示指定编码
14. R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
open换成with open ,这里的用意应该是with open会自己关闭资源
15.R0915: Too many statements (170/50) (too-many-statements)
这里好像是说太多参数了吗,那直接屏蔽调吧
# pylint: disable=too-many-locals