# -*- coding: utf-8 -*-
"""校验 index.html 对 8 项硬性约束的遵守情况"""
import re, sys
with open('/data/workspace/index.html', 'r', encoding='utf-8') as f:
html = f.read()
with open('/data/workspace/index.html', 'r', encoding='utf-8') as f:
lines = f.readlines()
def count(tag):
return html.lower().count('<' + tag.lower())
report = []
# 1 禁止输入模块
has_input = bool(re.search(r'(.*?)', html, re.S)
kw = re.search(r'