重点是怎么开启idea中的断言:如下 然后就OK了 引用: http://www.hankcs.com/program/java-assert.html 转载于:https://www.cnblogs.com/tongBJ/p/7149458.html