a = int(input("a>>>"))
b = int(input("b>>>"))
c = a + b
d = a - b
e = a / b
f = a * b
g = str(a) + str(b)
print(c, d, e, f, g)
Python:输入两个数获得加减乘除和拼接
最新推荐文章于 2024-09-01 16:57:39 发布
a = int(input("a>>>"))
b = int(input("b>>>"))
c = a + b
d = a - b
e = a / b
f = a * b
g = str(a) + str(b)
print(c, d, e, f, g)