作者:手机用户2502937497 | 来源:互联网 | 2023-05-18 16:56
Whatwouldbethemostsimplewaytoconvertanintegertoanarrayofnumbers?将整数转换为数字数组最简单的方法是什么?
What would be the most simple way to convert an integer to an array of numbers?
将整数转换为数字数组最简单的方法是什么?
Example:
例:
2468
should result in array(2,4,6,8)
.
2468应该产生数组(2,4,6,8)。
4 个解决方案