定义字符串 In [44]: s1 = 'hello world' print(s1) hello world In [46]: # 多行 3个单引号或双引号 s2 = """hello world """ print(s2) hello world In [47]: s3 = 'hello ' 'world' print(s3) hello world In [49]: s4 =('hello ' 'world') print(s4) hello world In [51]: # 换行,后面加 '\' s5 = 'hello ' \ 'world' print(s5) hello world