开发者社区 问答 正文

Python运行时错误并出现AssertionError异常类型的含义是什么?

Python运行时错误并出现AssertionError异常类型的含义是什么?

展开
收起
游客itr54lankkdrg 2021-10-31 11:40:00 370 分享 版权
1 条回答
写回答
取消 提交回答
  • 当 assert 关键字后的条件为假时,程序运行会停止并抛出 AssertionError 异常

    2021-10-31 11:40:17
    赞同 展开评论