str 、 repr 、 `` 、是将Python值转换为字符串的3种方式
print str("Hello, World !")hello, world ! print repr("Hello, World !")'Hello, World !' temp = 2 print "The number is " + tempThe number is 2
print str("Hello, World !")hello, world !
print repr("Hello, World !")'Hello, World !'
temp = 2 print "The number is " + tempThe number is 2
temp
上一篇:Python 之 input 与 raw_input 的区别
下一篇:实测微乐内蒙麻将辅助脚本苹果版本,揭秘小唐家乐园透视开挂软件