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

วิธีรู้ Current Working Directory ใน Python

ใช้ os.getcwd() หา current working directory (pwd)

ตัวอย่าง

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