DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python using os module file name from file path
from
pathlib
import
Path
print
(
Path
(
'/root/file.ext'
)
.
stem
)
Source by www.programiz.com #
PREVIOUS
NEXT
Tagged:
#python
#os
#module
#file
#file
#path
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit