差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
課題をさばく:dropboxで集めた課題と履修名簿から提出一覧を自動生成 [2019/11/13 14:36] – baba | 課題をさばく:dropboxで集めた課題と履修名簿から提出一覧を自動生成 [2019/11/13 15:00] (現在) – baba | ||
---|---|---|---|
行 23: | 行 23: | ||
├── printList.py | ├── printList.py | ||
</ | </ | ||
- | <code .py printList.py> | + | <file .py printList.py> |
import os | import os | ||
import glob | import glob | ||
行 58: | 行 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 | ||
行 86: | 行 91: | ||
print str(value) | print str(value) | ||
count += 1 | count += 1 | ||
- | </code> | + | </file> |