使用工厂函数代替int或int的子类:
def mk_int(s): s = s.strip() return int(s) if s else 0
上一篇 Scrapy的CSV文件有统一的空行?
下一篇 通过解释器变异混淆python字节码
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号