python 之 os.path學習筆記

os.path學習筆記 1.os.path.dirname(os.path.abspath(__file__)) 用法 os.path.abspath(__file__) 返回腳本的絕對路徑 os.path.dirname(__file__)返回腳本的路徑html 一般結合起來使用,會返回當前腳本的目錄python 例如:web import os fileDir = os.path.abspat
相關文章
相關標籤/搜索