python 字符串转义html echo 'a=1&b=2' | python3 -c "import sys,html; print(html.escape(sys.stdin.read()))" 本篇文章出自“国民时代”,转载请注明转载出处。