关于Python的字符串和数据结构处理
# 字符串与常用数据结构# Author: 大冰s1 = 'hi,python!'s2 = "hello,world!"s3 = """ goodby! world """print(s1, s2, s3, end = '')# 如果不希望字符串中的\表示转义,我们可以通过在字符串的最前面加上字母r来加以说明s1 = r'\u5927\u51b0's2 = '\u5927\u51b0'print(s1, s2, end = '')"""Python为字符串
原创
2020-12-20 21:08:21 ·
121 阅读 ·
0 评论