在Python中,打印输出通常使用`print()`函数。以下是一些基本的打印输出示例:
```python
打印单个字符串
print("Hello, World!")
打印单个变量
x = 10
print(x)
打印多个变量
print(x, "is the value of x")
打印带有换行的字符串
print("This is a new line.")
打印带有变量的字符串,注意使用逗号分隔
print("The value of x is:", x)
打印不换行的字符串
print("This will not move to a new line", end=" ")
打印空行
print()
打印格式化的字符串
print(f"The value of x is {x