March 2003
Intermediate to advanced
656 pages
39h 30m
English
splitext
splitext(path)
Returns a pair of strings
(
root,ext
)
such that
root
+
ext
equals path.
ext either is '', or
starts with a '.' and has no other
'.' or path separator. For example,
os.path.splitext('a/b.c') returns the pair
('a/b','.c').
Read now
Unlock full access