python assert断言

Python assert(断言)用于判断一个表达式,在表达式条件为 false 的时候触发异常。

posted @ 2022-03-14 10:13  Tomorrow1126  阅读(76)  评论(0编辑  收藏  举报