# -*- coding: utf-8 -*-
import io, re, os
files = ['up-mse-ece.html', 'up-meam.html', 'up-mse-mat.html', 'up-ipd-mse.html',
         'up-ese-mse.html', 'up-musa.html', 'up-msbmi.html', 'up-mssp.html']
for f in files:
    t = io.open(os.path.join('details', f), encoding='utf-8').read()
    print(f, os.path.getsize(os.path.join('details', f)), '编辑整理' in t, len(re.findall(r'class="card', t)))
