print介绍 print 在 Python3.x 是一个函数,但在 Python2.x 版本不是一个函数,只是一个关键字(python中关键的不能作为变量名等的单词)。 print用法 print()函数有好几种用法,打印不带引号的(比如数字,数字可以被计算机直接识别,可以不带引号直接输出),带单引号的、双引号,还有三引号。 print(100) print('hello') print("python") print('''hello!''') print()函数还有一些转义字符: