写一个python快速程序
以下是一个简单的Python快速程序,可以计算两个数的和:
num1 = 10
num2 = 20
sum = num1 + num2
print("The sum of", num1, "and", num2, "is", sum)
运行程序后,输出结果应该是:
The sum of 10 and 20 is 30
该程序使用了Python的基本语法,包括变量赋值、算术运算和输出语句。
原文地址: https://www.cveoy.top/t/topic/b7cP 著作权归作者所有。请勿转载和采集!