Python Notes - chanandrew96/MyLearning GitHub Wiki
Pandas
Format the output in print()
Walk all files in specific directory
import os
for dirpath,_,filenames in os.walk("DIRECTORY_PATH"):
for f in filenames:
if not f.endswith(".EXTENSION"):
continue
# Print a hr for better display
print(u'\u2500' * 50)
# Get full path for each file
filename = os.path.abspath(os.path.join(dirpath, f))
print(filename)
break
ImageIO
For handling images on Python
ImageIO Reference
Augmentor
用於影像處理(增強、修改、生成)
Augmentor Reference
Shutil
用於操作(新增、複製、移動、刪除...)檔案及資料夾的工具
Shutil Reference
tqdm 進度條
用於顯示進度
tqdm Reference
argsparse
用於在命令行中傳入參數讓Python取得參數運行