Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> Python

วิธีทำ cd ใน Python

เปลี่ยน directory (cd) ด้วย os.chdir() รองรับ relative/absolute path

ตัวอย่าง

>>> import os
>>> os.chdir('my_folder')