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

วิธีหา Current Working Directory ใน Python

ใช้โมดูล os เพื่อหา current working directory (pwd)

ตัวอย่าง

>>> import os
>>> print(os.getcwd())
/home/ayush/qna