📜  如何在 python 代码示例中添加值

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

代码示例1
#To add
x = 1 #The Values
y = 1 #The Values
sum = float(x) + float(y) #add values after converting to floats
#optinal
print(sum)