java 字符串“001“ 转换为 int 数字 1

String str  = "001";
int num = Integer.parseInt(str);

猜你喜欢

转载自blog.csdn.net/weixin_43404791/article/details/108677734