python 字符串

什么是字符串?

字符串是以单引号或双引号括起来的任意文本
'abc'
"def"
字符串不可变

创建字符串

str1 = "sunck is a good man!"
str3 = "sunck is a nice man!"
str5 = "sunck is a handsome man!"

上一篇:linux(4)Linux 文件内容查看


下一篇:2021-01-08