What does the \newline escape sequence mean in python?

前端 未结 2 580
时光取名叫无心
时光取名叫无心 2021-01-15 02:50

I found the sequence \\newline in a list of escape sequences in the python documentation. I wonder how it is used and for what. At least in my interpreter it se

2条回答
  •  清酒与你
    2021-01-15 03:25

    The documentation you are alluding to is explaining how a backslash followed by a literal newline is ignored, as if the next line were physically joined with the line on which the starting backslash was found.

    The string \newline' has no special meaning; it is exactly what you say you think it is.

提交回复
热议问题