摘要: assert在Python优化模式(-O)下会被全局禁用 应改用显式的if/raise结构抛出业务异常(如ValueError) 翻译 搜索 复制 阅读全文
posted @ 2025-07-17 18:29 papering 阅读(10) 评论(0) 推荐(0)