在Python中,可以使用print()函数来输出变量的值。
例如:
x = 10print(x)输出:
10如果要输出多个变量,可以使用逗号分隔它们:
x = 10y = 20print(x, y)输出:
10 20还可以使用字符串格式化来输出变量的值:
x = 10y = 20print("x的值是:{},y的值是:{}".format(x, y))输出:
x的值是:10,y的值是:20或者使用f-string格式化字符串输出变量的值:
x = 10y = 20print(f"x的值是:{x},y的值是:{y}")输出:
x的值是:10,y的值是:20 
