Coder Social home page Coder Social logo

file_rename's Introduction

作業拍照快速改檔名

[Step0]

  • 載code

[Step1]

  • 去E3載學生資料的json檔案

    • 成員 > 選擇所有____個使用者
    • 記得過濾為只有學生的資料 image
  • 創建一個資料夾,把JSON檔案跟兩個python code放進去

image

[Step2] - (TODO : 寫成.bat一鍵完成 & 改為相對路徑)

  • 開powershell or VScode or 其他可以跑python的環境
  • 在 createStudentDir.py 中更改以下參數
    • student_dir_path 改為資料夾產生後擺放的絕對路徑
    • json_file_path 改為你json檔案的絕對路徑
  • 下指令
    • $ python createStudentDir.py

    • 會parse json file,產生所有學生的資料夾

      image image

[Step3]

  • 拍照,放到相對應的資料夾內

[Step4] - (TODO : 壓縮檔案輸出zip資料夾)


  • 注意!! 在執行之前建議先備份資料夾,避免出現error/Bug時檔案遺失

  • 在 dirRename.py 中更改以下參數

    • directory_path 改為你放所有學生資料夾的絕對路徑
  • 下指令

    • $ python dirRename.py

    image

    • 會把資料夾內的照片改成 學號_姓名_1、學號_姓名_2 …

    • 並把它移出來 & 刪掉資料夾

      image

file_rename's People

Contributors

zenchieh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.