📜  python代码示例中的简单求和

📅  最后修改于: 2022-03-11 14:45:37.234000             🧑  作者: Mango

代码示例1
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
# print(a[0] + a[1]  + a[2] + a[3])
print("The total is: ") 
print(sum(a + b))