# Python 開発環境: 1. python 3.7.0 2. pyinstaller 3.5 ## Training * Python to exe Windows * [這篇文章過後,別再問我如何將 Python 程序打包成 .exe 文件!](https://kknews.cc/code/2blvyeg.html) * CSV * [Python3 で CSV の読み書きをする方法 – Shift_JIS と UTF-8 対応サンプルコード付](https://www.craneto.co.jp/archives/1309/#CSV-2) * File * [How to create a Directory in python ?](https://thispointer.com/how-to-create-a-directory-in-python/) * [【Python】python文件打开方式详解——a、a+、r+、w+、rb、rt区别](https://blog.csdn.net/ztf312/article/details/47259805) ## OS * [【python入門】パス名操作はos.path()を活用しよう!](https://www.sejuku.net/blog/63651) * [os.paht.normpath: パスの正規化(整理) - yamamo10.jp](http://www.yamamo10.jp/yamamoto/comp/Python/library/os.path/example/normpath/index.html) ## subprocess * open Windows explorer : [【Python】subprocessでフォルダを開く【Windows環境】](https://kazusa-pg.com/python-open-folder/) * Open Mac finder ```python subprocess.call(["open", "-R", path]) ``` ## CSV * [Pythonを使ってCSVを操作(基礎編)](https://reffect.co.jp/python/python-csv-manuplulate#CSV-5) * [pythonでcsvファイルを扱ってみよう](https://qiita.com/Anaakikutsushit/items/14cec56f8cf9e955c4c9) * Windows issue * [Python でcsv出力したら一行空く件](https://qiita.com/ryokurta256/items/defc553f5165c88eac95) ### BOM ```python # open without BOM with open('test.csv', newline='', encoding='utf-8-sig') as csvfile: # write with BOM f = open("test.csv", mode="w", encoding="utf-8", newline="") # Add BOM for encoding urf-8 f.write('\ufeff') ``` ## GUI * Top Libs: [八款 Python GUI 開發框架](https://stackoverflow.max-everyday.com/2018/05/python-gui-framework/) ### Tkinter * [Tkinter 教學](https://morvanzhou.github.io/tutorials/python-basic/tkinter/2-01-label-button/) * [How to Center the Main Window on the Screen in Tkinter with Python 3](https://yagisanatode.com/2018/02/24/how-to-center-the-main-window-on-the-screen-in-tkinter-with-python-3/) * [Python Tkinter Pack布局管理器(超级详细,看了无师自通)](http://c.biancheng.net/view/2453.html) * [Tkinter tkFileDialog module](https://pythonspot.com/tk-file-dialogs/)