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

posted on 2016-12-30 16:08  23云恋49枫  阅读(153)  评论(0编辑  收藏  举报