python中字符串string的简单用法

字符串str:在python中用” ” 双引号,或者 ’ ‘单引号括起来的内容就是字符串,本文只写了简单的字符串的用法,字符串中的函数操做有很大的做用,再之后的编程中将会常常用到。php 字符串拼接 str1+str2,输出中间没有空格python str1 = "Hello World" str2 = "Today is full of hope" print(str1+str2) 字符串不能直
相关文章
相关标签/搜索