Python assert 关键字 ... "hello" #如果条件返回False,则会引发AssertionError: assert x == "goodbye". 运行实例. 定义和用法. assert 关键字在调试代码时使用。
確定! 回上一頁