# Python初学者解法
def adder(e1, e2, e3):
if not isinstance(e1, (int, float)) or not isinstance(e2, (int, float)) or not isinstance(e3, (int, float)):
raise ValueError("输入的参数必须是数字")
return e1 + e2 + e3
try:
print(adder(1, 2, 3))
except ValueError as e:
print(e)