差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
課題をさばく:dropboxで集めた課題と履修名簿から提出一覧を自動生成 [2019/11/13 14:31] – baba | 課題をさばく:dropboxで集めた課題と履修名簿から提出一覧を自動生成 [2019/11/13 15:00] (現在) – baba | ||
---|---|---|---|
行 14: | 行 14: | ||
| 0123456787 | | 0123456787 | ||
+ | 以下 ファイル構成は以下の通りとして、実行するprintList.pyはmember.csv(履修登録学籍番号が順番に一行ずつはいったもの) | ||
+ | < | ||
+ | └── 2019 | ||
+ | ├── kadai1 | ||
+ | ├── kadai2 | ||
+ | ├── kadai3 | ||
+ | ├── member.csv | ||
+ | ├── printList.py | ||
+ | </ | ||
<file .py printList.py> | <file .py printList.py> | ||
import os | import os | ||
行 49: | 行 58: | ||
# Prepare for all result list | # Prepare for all result list | ||
score_lists = [] | score_lists = [] | ||
+ | titles = [] | ||
+ | titles.append(" | ||
+ | for i in range(len(kind_of_parent_directory)): | ||
+ | titles.append(kind_of_parent_directory[i]) | ||
+ | score_lists.append(titles) | ||
# Be sure to prepare all sutudents number on your class | # Be sure to prepare all sutudents number on your class |