static void Main() { int number = 4563581; ArrayList array = new ArrayList(); while (number > 0) { array.Add(number % 10); number = number / 10; } }
将一个整型转换为整型数组例如Int num = 5546798;转为int [] {5,5,4,6,7,9,8}(不能转换为字符串)...
最新推荐文章于 2021-11-04 23:42:02 发布