Path 路径

pydu.path.cd(path)

进入到给定目录的上下文管理器。

>>> from pydu.path import cd
>>> with cd('test'):
...     pass