DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python Split a file path into root and extension
import os root, ext = os.path.splitext(path)
Source by docs.python.org #
PREVIOUS
NEXT
Tagged:
#python
#Split
#file
#path
#root
#extension
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit