Jak uzyskać dane po ostatnim cięciu w Pythonie
os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/'))
>>> folderD
use this to get last value
Worrisome Worm
os.path.basename(os.path.normpath('/folderA/folderB/folderC/folderD/'))
>>> folderD
use this to get last value