@lernerpython.comReuven M. Lerner @lernerpython.com
2026-11-29 16:30 UTC
Want to work with files and directories in #Python? pathlib gives a single interface for all file-related needs: from pathlib import Path p = Path('/etc/passwd') with p.open() as infile: for one_line in infile: print(len(one_line), end=' ')
1 picture (not shown on this phone)
2 likes, 0 reposts, 0 replies
3 Next post4 More from @lernerpython.comBackBluesky home