s=input().split() print(int(s[0]) + int(s[1])) 这里问题的关键在于如何接收输入用空格分隔的两个整数 解决方法为input().split()函数,具体如下: https://www.runoob.com/python/att-string-split.html