• os.path
    1. import os
    2. print(os.path.abspath('.'))
    3. # 输出
    4. /home/jdxj/workspace/study-python
    • pathlib