我是一名 Python 新手,虽然我知道打印包含字符串和变量的文本,但我想问一个关于此的基本问题。这是我的代码:
x=5
print ("the value of x is ",x)
print "the value of x is",x
第一个打印命令打印('the value of x is ', 5),而第二个打印,the value of x is 5. 但是print ('hello')&print 'hello'打印hello(相同),为什么?