288 / app.py
peter288's picture
Create app.py
3713aa0 verified
raw
history blame contribute delete
254 Bytes
def add_two_numbers(a, b):
return a + b
# 输入两个数字
a = int(input("请输入第一个数字a: "))
b = int(input("请输入第二个数字b: "))
# 计算并输出结果
result = add_two_numbers(a, b)
print("两个数字的和是:", result)