From 9688866fdb4e04089572fba1c2bd2ad60421d9bd Mon Sep 17 00:00:00 2001 From: GONGYE Heyu Date: Sat, 11 Feb 2023 20:24:13 +0800 Subject: [PATCH] doc: python.md (#299) Maybe it's not perfect, but it's better than before --- docs/python.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/python.md b/docs/python.md index 6781ac3..e447015 100644 --- a/docs/python.md +++ b/docs/python.md @@ -489,7 +489,7 @@ Python F 字符串(自 Python 3.6+ 起) 'text ' >>> f'{"test":*>10}' # 向左填充 '******test' ->>> f'{"test":*<10}' # 填写正确 +>>> f'{"test":*<10}' # 向右填充 'test******' >>> f'{"test":*^10}' # 填充中心 '***test***' @@ -649,7 +649,7 @@ a_list[start:end:step] ['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster'] ``` -#### 迈着大步 +#### 跳跃索引 ```python ['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster'] @@ -678,7 +678,7 @@ a_list[start:end:step] ['butter'] ``` -### 使用权 +### 列表边界 ```python >>> li = ['a', 'b', 'c', 'd']