Skip to content

Instantly share code, notes, and snippets.

@KatagiriSo
Created October 22, 2020 11:31
Show Gist options
  • Save KatagiriSo/3c75d2f1c80a24edf0000d09fd8c5dda to your computer and use it in GitHub Desktop.
Save KatagiriSo/3c75d2f1c80a24edf0000d09fd8c5dda to your computer and use it in GitHub Desktop.
ファイル読むこむ
import os
path = "./hogehoge.txt"
with open(path, mode='w') as f:
f.write("a")
with open(path) as f:
t = f.read()
print(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment