天天看點

自學Python第33天今日函數:lower()、os.path.join()、os.path.exists()lowe

作者:一個人的Python

自學Python第33天

今日函數:lower()、os.path.join()、os.path.exists()

lower()

用來把字元串中所有字母轉為小寫字母。(英文中lower-case letters可以表示小寫字母)

os.path.join()

用來拼接每個分類檔案夾的路徑。(join在英文中是:連接配接、彙合、加入的意思)該函數接收兩個參數用來合并兩個參數對應的路徑,然後将合并之後的路徑傳回。

os.path.exists()

用來判斷某個路徑下某個檔案夾是否已經存在。

自學Python第33天今日函數:lower()、os.path.join()、os.path.exists()lowe
自學Python第33天今日函數:lower()、os.path.join()、os.path.exists()lowe
自學Python第33天今日函數:lower()、os.path.join()、os.path.exists()lowe