Python 代码:计算两个数的和与积
a = 2
b = 3
sum = a + b
product = a * b
print('The sum of', a, 'and', b, 'is', sum)
print('The product of', a, 'and', b, 'is', product)
输出结果:
The sum of 2 and 3 is 5
The product of 2 and 3 is 6
原文地址: https://www.cveoy.top/t/topic/jNeF 著作权归作者所有。请勿转载和采集!