无论操作系统或路径格式是什么,我可以使用哪个Python库从路径中提取文件名?
例如,我希望所有这些路径都能归还给我c:
c
a/b/c/ a/b/c \a\b\c \a\b\c\ a\b\c a/b/../../a/b/c/ a/b/../../a/b/c
python
python ×1