python print的用法

1打印时必须加圆括号

要在命令行中用print打印变量的值时,绝对不能直接print xxx,必须要加括号:

print(xxx)

2 print任何对象都可以打印

打印即可!

原文地址:https://www.cnblogs.com/hustdc/p/7143583.html