"""硬性约束 1-8 完成情况自检""" with open('index.html', encoding='utf-8') as f: h = f.read() def has(needle): return needle in h print("=== 硬性约束自检清单 ===\n") # 约束1:无输入模块 form_tags = ['