もっと詳しく

連載目次 # 準備 from pathlib import Path Path(‘data’).mkdir(exist_ok=True) Path(‘data/foo.txt’).write_text(‘hello’) Path(‘data/bar.txt’).write_text(‘world’) Path(‘data/baz.bin’).write_bytes(b’\x00\x01\x02′) …