12
filename="/tmp/test.txt"os.path.basename(filename)
filename="/tmp/test.txt"os.path.splitext(os.path.basename(filename))[0]
filename="/tmp/test.txt"os.path.splitext(os.path.basename(filename))[1]
filename="/tmp/test.txt"os.path.dirname(filename)