python API
https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files
python module用法
https://pymotw.com/3/