📜  python 如何拆分一个数字 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:24.840000             🧑  作者: Mango

代码示例2
number = "12345"
result = []
for digit in number:
    result.append(digit)
print(result)
# result is ['1', '2', '3', '4', '5']