Python中的字符串常用处理方法
摘要:
字符串 字符串就是一系列的字符。在Python中,用引号括起的都是字符串,其中的引号可以是单引号,也可以是双引号,如下所示: "This is a string." 'This is also a string.' 这种灵活性让你能够在字符串中包含引号和撇号: 'I told my friend, 阅读全文
posted @ 2022-12-04 23:05 lovingbird 阅读(410) 评论(0) 推荐(0) 编辑