python 断言

>>> age = 10
>>> assert 0 < age < 10
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AssertionError
>>> assert 0 < age < 11

  

posted @ 2019-06-24 17:29  嵌入式实操  阅读(118)  评论(0编辑  收藏  举报