python html编码解码 电脑版发表于:2020/8/6 14:53 使用方法:html.escape(s)与html.unescape即可 ```python import html s="<div>jsdlfjsl</div>" #html编码 b=html.escape(s) print(b) #htmlj解码 c=html.unescape(b) print(c) ```