为了代码的阅读性,有时候一些字符串比较长需要在第二行写,所以使用以下方法解决 第一种: a = ( 'http:ddd.com' 'a=b' ) print(a) 输出: http:ddd.coma=b 第二种: a = "dddddd\ ddadadada\ "