Pathlib example
-
Path
from pathlib import Path
file = Path("python.json")
print(file)
print(file.__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
Path
from pathlib import Path
file = Path("python.json")
print(file)
print(file.__class__.__name__) # PosixPath