Skip to content
On this page

2021년07월27일

수정하기
문서 생성 2021-07-27 12:56:15 최근 수정 2021-07-27 23:21:10
On this page

Note

JavaScript

Python

  • 파일 읽기, 쓰기
    with open('filename', 'r') as original: title = original.readline()
    with open('filename', 'r') as original: data = original.read()
    yaml = "---\ntitle:" + title.replace("#", "") + "\n" + "---\n"
    with open(root + "/" + file, 'w') as modified: modified.write(yaml + data)

log

LINKS TO THIS PAGE