Python 3 的 input()获取的是整行的字符串。
#方法一:
a, b, c = map(int, input('请输入3个整数, 用空格分隔:').split())
print ('\n输入3个整数为:%s %s %s'%(a, b, c))
#方法二:
a, b, c = input('请输入3个整数, 用空格分隔:').split()
print( '\n输入3个整数为:%s %s %s'%(a, b, c))
#方法三:
a, b, c = (int(x) for x in input('请输入3个整数, 用空格分隔:').split())
print ('\n输入3个整数为:%s %s %s'%(a, b, c))
参考:https://www.zhihu.com/tardis/landing/360/ans/560690875