对一段给定代码进行注释。
代码：

```python
# This program takes in two numbers and adds them up
num1 = int(input("Enter your first number: "))
num2 = int(input("Enter your second number: "))

# Add the numbers together
sum = num1 + num2

# Print out the sum
print("The sum of", num1, "and", num2, "is:", sum)
```
这个程序接受两个数字作为输入，将它们相加并将结果打印出来。

```python
# This program takes in two numbers and adds them up
# 此程序接受两个数字并将它们加在一起
num1 = int(input("Enter your first number: "))  # 获取第一个数字的输入
num2 = int(input("Enter your second number: "))  # 获取第二个数字的输入

# Add the numbers together
# 将两个数相加
sum = num1 + num2

# Print out the sum
# 打印两个数字之和
print("The sum of", num1, "and", num2, "is:", sum)
```