Answers for "where is _os module in python"

3

os module

>>> import os
>>> os.getcwd()      # Return the current working directory
'C:\Python39'
>>> os.chdir('/server/accesslogs')   # Change current working directory
>>> os.system('mkdir today')   # Run the command mkdir in the system shell
0
Posted by: Guest on May-14-2021

Code answers related to "where is _os module in python"

Python Answers by Framework

Browse Popular Code Answers by Language