Java 字符数字得到整数 1. 减去 '0' System.out.println(('5' - '0') * 7); //35 2. 先把字符转换成字符串 System.out.println(Integer.parseInt('5' + "") * 7); //35