一、字符串的基本操作 1.1 创建字符串 # 三种创建方式 str1 = '单引号字符串' str2 = "双引号字符串" str3 = '''三引号字符串, 可以跨多行''' 1.2 字符串索引和切片 s = "Hello, Python!" # 索引 pr