os.name The name of the operating system dependent module imported.
os.devnull The file path of the null device. 不知道用法
os.environ A mapping object representing the string environment.
os.getenv(key, default=None) Return the value of the environment variable key if it exists, or default if it doesn’t. key, default and the result are str.
os.pathsep The character conventionally used by the operating system to separate search path components (as in PATH)
os.sep The character used by the operating system to separate pathname components.
os.getcwd() Return a string representing the current working directory.
os.listdir(path='.') Return a list containing the names of the entries in the directory given by path
os.mkdir(path, mode=0o777, *, dir_fd=None) Create a directory named path with numeric mode mode. If the directory already exists, FileExistsError is raised.
os.makedirs(name, mode=0o777, exist_ok=False) Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed to contain the leaf directory.
os.remove(path, *, dir_fd=None)
Remove (delete) the file path. If path is a directory, OSError is raised. Use rmdir() to remove directories.
os.stat(path, *, dir_fd=None, follow_symlinks=True) Get the status of a file or a file descriptor.