# -*- coding: utf-8 -*- """对 index.html 做硬性约束的自动化校验""" import re, sys with open('/data/workspace/index.html', 'r', encoding='utf-8') as f: html = f.read() results = [] def check(name, cond): results.append((name, bool(cond))) # 1. 无表单/输入/用户输入模块 check("1. 无表单/输入框(禁止用户输入模块)", not re.search(r'