温馨提示×

python如何换行输出两个参数

小亿
87
2024-03-22 11:42:03
栏目: 编程语言

在Python中,可以使用print()函数来输出两个参数并且换行。例如:

a = 10
b = 20
print(a)
print(b)

这将会输出:

10
20

0