Skip to content

Commit 0bb908f

Browse files
authored
Merge pull request yidao620c#188 from fanofxiaofeng/patch-3
转义字符'\'在markdown中似乎没有被正确解析
2 parents e712041 + a831cc4 commit 0bb908f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c05/p01_read_write_text_data.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ latin-1是字节0-255到U+0000至U+00FF范围内Unicode字符的直接映射。
7373
data = f.read()
7474
f.close()
7575
76-
另外一个问题是关于换行符的识别问题,在Unix和Windows中是不一样的(分别是\n\r\n)。
76+
另外一个问题是关于换行符的识别问题,在Unix和Windows中是不一样的(分别是 ``\n`` 和 ``\r\n`` )。
7777
默认情况下,Python会以统一模式处理换行符。
7878
这种模式下,在读取文本的时候,Python可以识别所有的普通换行符并将其转换为单个 ``\n`` 字符。
7979
类似的,在输出时会将换行符 ``\n`` 转换为系统默认的换行符。

0 commit comments

Comments
 (0)