Integer.parseInt的一个坑(指定基数) 在使用Integer.parseInt时如果转换的字符串为n0开头会解析为8进制数 你可以int number = Integer.parseInt(“0100”,10); 指定他的基数这样他就会按十进制来解析