assert断言基础用法

Python的assert是用来检查一个条件,如果它为真,就不做任何事。如果它为假,则会抛出AssertError并且包含错误信息

原文地址:https://www.cnblogs.com/luxiaojun/p/6237351.html