basename() gives the name of the last file/folder of the path, whereas splitext() splits the file name into filename and extension. import os print(os.path.
確定! 回上一頁