面向对象的文件系统路径操作-Python开发

时间:2021-05-25 16:04:08
【文件属性】:
文件名称:面向对象的文件系统路径操作-Python开发
文件大小:49KB
文件格式:ZIP
更新时间:2021-05-25 16:04:08
Python Files path.py path.py将路径对象实现为一流的实体,从而可以直接在这些路径对象上调用对文件的常规操作。 例如:从路径导入从路径d = df中f中的f的路径d = Path('/ home / guido / bin')(又名路径派,以前称为path.py)将路径对象实现为一流的实体,从而允许对文件进行通用操作直接在这些路径对象上调用。 例如:从路径导入Path d = d.files(“ *。py”)中f的路径(“ / home / guido / bin”):f.chmod(0o755)#d.files(“中f的通配* .py“):f.chmod(” u + rwx“)#更改工作目录:使用Path(” somewhere“):#现在在“ somewhere”中使用cwd ...#使用/ foo_txt = Path(”连接路径bar“)/” foo.txt“ Pat
【文件预览】:
path-main
----MANIFEST.in(14B)
----README.rst(5KB)
----.readthedocs.yml(79B)
----.coveragerc(99B)
----path()
--------py37compat.py(5KB)
--------matchers.py(1KB)
--------__init__.py(52KB)
----pyproject.toml(367B)
----docs()
--------history.rst(81B)
--------api.rst(173B)
--------conf.py(1KB)
--------_templates()
--------Makefile(7KB)
--------index.rst(359B)
----pytest.ini(198B)
----CHANGES.rst(14KB)
----.github()
--------FUNDING.yml(20B)
--------workflows()
----skeleton.md(10KB)
----Dockerfile(167B)
----tox.ini(707B)
----LICENSE(1KB)
----mypy.ini(37B)
----setup.cfg(2KB)
----test_path.py(38KB)
----setup.py(92B)
----.gitignore(79B)
----.dockerignore(5B)
----.editorconfig(195B)
----.flake8(136B)
----.pre-commit-config.yaml(175B)

网友评论