📜  在 python 代码示例中拆分给定数字

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

代码示例1
# split a given int value in list
num = 13579
x = [int(a) for a in str(num)]
print(x)