我是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(相同),为什么呢?
月关宝盒
翻阅古今
达令说
随时随地看视频慕课网APP
相关分类