How to correctly write a raw multiline string in Python?

后端 未结 2 1053
别跟我提以往
别跟我提以往 2020-12-19 11:51
  1. I know that you can create a multi-line string a few ways:

Triple Quotes

\'\'\'
This is a 
multi-line
string.
\'\'\'
         


        
2条回答
  •  有刺的猬
    2020-12-19 12:32

    I think you might also need to make the second line a raw string as well by prefixing it with the r as you did in r'on\e'

提交回复
热议问题