python / python-docs-zh-cn

zh_CN translation of the Python documentation
https://docs.python.org/zh-cn/
431 stars 74 forks source link

文档显示问题 #304

Closed YanHuaSuiMei closed 1 year ago

YanHuaSuiMei commented 1 year ago

python310 前视断言 的倒数第三段:

.*[.](?!bat$)[^.]*{TX-PL-LABEL}#x60;` 否定型前视意味着:如果表达式 ``bat 在当前位置不能匹配,
则可以接着尝试正则表达式的其余部分;如果 bat{TX-PL-LABEL}#x60;` 能匹配,则整个正则表达式将匹配失败。
 尾随的 ``{TX-PL-LABEL}#x60;` 是必需的,以确保可以匹配到像 ``sample.batch 这样以 bat 开头的文件名。
当文件名中有多个点号时, [^.]* 可以确保表达式依然有效。

有多余的字符串: {TX-PL-LABEL}#x60

python310及以上的版本中都有此问题, 其他地方没看到.

silkriver commented 1 year ago

fixed