We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735496e commit 350f656Copy full SHA for 350f656
i18n/zh-cn/docusaurus-plugin-content-docs/current/basic-types.md
@@ -72,7 +72,7 @@ print(type(name)) # 获取变量的类型
72
| 删除两端的空白字符 | `myStr.trim()` | `my_str.strip()` |
73
| 按指定宽度居中对齐 | - | `my_str.center(width)` |
74
| 第一个单词首字母大写 | `myStr.replace(myStr[0], myStr[0].toUpperCase())` | `my_str.capitalize()` |
75
-| 每个单词首字母大写 | `myStr.replace(/(^\w{1})|(\s+\w{1})/g, s => s.toUpperCase())` | `my_str.title()` |
+| 每个单词首字母大写 | `myStr.replace(/(^\w{1})\|(\s+\w{1})/g, s => s.toUpperCase())` | `my_str.title()` |
76
77
### 相关资源
78
- https://docs.python.org/3/library/stdtypes.html
0 commit comments