Skip to content

Commit

Permalink
Docs: Update os-module.md (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricosmall authored Dec 29, 2023
1 parent 4377321 commit 873e736
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ list_items('../')

| 特性 | JavaScript | Python |
|---------|------------|--------|
| 文件或目录是否存在 | fs.existsSync(path) | os.path.exists(path) |
| 创建目录 | fs.mkdirSync(path) | os.mkdir(path) |
| 列出目录 | fs.readdirSync(path) | os.listdir(path) |
| 文件或目录是否存在 | `fs.existsSync(path)` | `os.path.exists(path)` |
| 创建目录 | `fs.mkdirSync(path)` | `os.mkdir(path)` |
| 列出目录 | `fs.readdirSync(path)` | `os.listdir(path)` |

### 相关资源

Expand Down

0 comments on commit 873e736

Please sign in to comment.