1. 使用`print()`函数直接打印整数:
```python
num = 10
print(num) 输出:10
2. 使用`format()`函数格式化输出整数:
```python
num = 10
print("{}".format(num)) 输出:10
3. 使用字符串插值输出整数:
```python
num = 10
print("The number is: {}".format(num)) 输出:The number is: 10
4. 使用`f-string`(Python 3.6及以上版本支持)进行格式化输出:
```python
num = 10
print(f"The number is: {num}") 输出:The number is: 10
以上方法都可以用来输出整数。选择哪一种方法取决于你的具体需求和代码风格