📜  os dir 存在 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:02.847000             🧑  作者: Mango

代码示例1
>>> from pathlib import Path
 >>> Path('new_folder').is_dir()
 True
 >>> (Path.cwd() / 'new_folder' / 'file.txt').exists()
 False