RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Python之str、repr、反引号(``)的区别

str 、 repr 、 `` 、是将Python值转换为字符串的3种方式

创新互联是一家专业提供连城企业网站建设,专注与网站制作、成都网站建设H5页面制作、小程序制作等业务。10年已为连城众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。

print str("Hello, World !")
hello, world !

print repr("Hello, World !")
'Hello, World !'

temp = 2
print "The number is " + temp
The number is 2


当前标题:Python之str、repr、反引号(``)的区别
转载注明:http://scpingwu.com/article/ghedid.html