From c3e5f29766228378c4d45cd37e74a7b0d0468b95 Mon Sep 17 00:00:00 2001 From: Rico <805163443@qq.com> Date: Fri, 29 Dec 2023 11:47:16 +0800 Subject: [PATCH] Docs: Update create-and-import-modules.md (#29) --- .../current/create-and-import-modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/create-and-import-modules.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/create-and-import-modules.md index 500b78d..8b75cd2 100755 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/create-and-import-modules.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/create-and-import-modules.md @@ -72,7 +72,7 @@ print(result) 特性 | JavaScript | Python --- | --- | --- -导入模块 | `import foo from 'module'` | `import foo` +导入模块 | `import foo from 'module'` | `import module` 从模块导入特定成员 | `import { foo, bar } from 'module'` | `from module import foo, bar` 将模块导入为别名 | `import { foo as alias } from 'module'` | `from module import foo as alias` 将整个模块导入为别名 | `import * as alias from 'module'` | `import module as alias`