Pathlib cwd
- cwd
from pathlib import Path
cwd = Path.cwd()
print(cwd)
print(cwd.__class__.__name__) # PosixPath
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
from pathlib import Path
cwd = Path.cwd()
print(cwd)
print(cwd.__class__.__name__) # PosixPath