📅  最后修改于: 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