之後 maybe 會將這兩個檔案整合:)讓助教改作業可以方便點!
請在 python3 環境下使用
使用前請先下載所需 packages
pip3 install -r requirements.txt
從 ecourse2 上面下載的作業,可以將檔案整理至同一個文件夾。 檔案命名格式:學號+姓名
python3 reranger.py [-h] original_filedir target_filedir
original_filedir
original file path
target_filedir
target file path
-h, --help
show this help message and exit
python3 reranger.py 111_1_4105210_01-HW10-543333 HW10
其中 111_1_4105210_01-HW10-543333
為 ecourse2 下載下來的資料夾
而 HW10
為檔案整理完會存放的資料夾
轉換資料夾中的所有的 .docx 檔至 .pdf 檔
python3 docTopdf.py [-h] [--d] filedir
filedir
original file path
-h, --help
show this help message and exit
--d
delete docx files
python3 docToPdf.py HW10
其中 HW10
為要轉換的檔案所在的資料夾