Changing the directory

Using the os module, we can change the current working directory. For that, the os module has the chdir() function, for example:

>>> os.chdir('/home/student/work')
>>> print(os.getcwd())
/home/student/work
>>>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset