python一行读取多个数字

版权声明:如需转载,请注明本博客网址,谢谢! https://blog.csdn.net/qq_36478460/article/details/81905679

最简单快捷的方式:

l = list(map(int, input().split()))
print(l)

猜你喜欢

转载自blog.csdn.net/qq_36478460/article/details/81905679