📜  python 断言器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:34.675000             🧑  作者: Mango

代码示例1
The assert keyword is used when debugging code.

The assert keyword lets you test if a condition in your code returns True, if not, the program will raise an AssertionError.

You can write a message to be written if the code returns False, check the example below.