def add(a, b): """ 计算两个数的和 """ result = a + b c = input('请输入c') result = result + int(c) return result a = input('请输入a') b = input('请输入b') sum = add(int(a), int(b)) print(sum)