Thay đổi thư mục (cd) trong Python dùng module os. Nhận input đường dẫn tương đối/tuyệt đối thư mục muốn chuyển.
Ví dụ
>>> import os
>>> os.chdir('my_folder')
Thay đổi thư mục (cd) trong Python dùng module os. Nhận input đường dẫn tương đối/tuyệt đối thư mục muốn chuyển.
>>> import os
>>> os.chdir('my_folder')