读入部分尝试改为a=list(map(int,input().split()))
你把eval去掉就不会报错了,eval只能转换数字,但是你加了空格就变成了字符串类型
b=sum(map(int,a.split(' ')))