快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

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://6mz.cn/article/ghedid.html

其他资讯