How do I get the filename without the extension from a path in Python?

How do I get the filename without the extension from a path in Python?

"/path/to/some/file.txt"  →  "file"

← Назад к списку