天天看点

自学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