1.code
numb1 = input('输入数字:').split()
print(numb1)
numb2 = list(map(int, numb1))
print(numb2)
2.result
输入数字:1 2 3 54
['1', '2', '3', '54']
[1, 2, 3, 54]
2022-07-12 19:35:19
numb1 = input('输入数字:').split()
print(numb1)
numb2 = list(map(int, numb1))
print(numb2)
输入数字:1 2 3 54
['1', '2', '3', '54']
[1, 2, 3, 54]
下一篇:Linux下安装boost环境