もっと詳しく

連載目次 # 準備 from pathlib import Path Path(‘test’).mkdir(exist_ok=True) Path(‘test/foo.txt’).write_text(‘foo’) Path(‘test/bar.txt’).write_text(‘bar’) Path(‘test/baz.bin’).write_bytes(b’0123456789′) Path( …