Difference between revisions of "Os (Python library)"
Jump to navigation
Jump to search
(→Other) |
|||
Line 16: | Line 16: | ||
=== Other === | === Other === | ||
<code>[[os.path]].dirname</code> | <code>[[os.path]].dirname</code> | ||
+ | <code>[[os.path]].basename</code> | ||
== Example == | == Example == |
Revision as of 14:20, 4 February 2022
Usage
import os
Command execution
os.system("your_code ")
File management
Other
os.path.dirname
os.path.basename
Example
#!/usr/bin/env python3 import os os.system("echo 'Hello World'")
Related
See also
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: