Getting the name of the file without the extension: import os print(os.path.splitext("/path/to/some/file.txt")[0]). Prints:
確定! 回上一頁