【202507】python中"\r\n"的作用

  • \n 用于换行。
  • \r 用于将光标移回当前行的开头。
  • 在Windows系统中,文件换行通常使用 \r\n。
posted @ 2025-07-15 00:15  猴年马月  阅读(5)  评论(0)    收藏  举报