12 2016 档案

摘要:断言: assert这个关键字称之为断言,当这个关键字后面的条件为假的时候,程序自动崩溃并抛出AssertionError的异常 例子: >>>assert 3 < 4 Traceback (most recent call last): File "<pyshell#0>", line 1, in 阅读全文
posted @ 2016-12-07 20:13 SpeicalLife 阅读(220) 评论(0) 推荐(0)