📜  如何在python代码示例中使用assert

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

代码示例1
assert type(num) is int,"num must be an integer"