Skip to main content
 首页 » 编程设计

python之python 中的新行

2025年05月04日15lori

想找到一段用 python 编写的代码,它在某个函数中添加了一个新行。

我必须搜索哪个字符?对于 \n ?

谢谢。

请您参考如下方法:

是的,在字符串中通常使用 \n。但是,它可能是这样的多行字符串:

''' 
Some string 
with  
enters. 
'''