「みんなのPython Webアプリ編」58ページ
python 3.1では文字列フォーマットが変わる
%がサポートされなくなる
16行目
%s
を
{f}
20行目
%s
{ff}
に変える
f,ffは適当
56行目
print (html_body % (options,content)).encode('utf-8')↲
を
print ((html_body).format(f=options,ff=content).encode('utf-8'))↲
にかえるとできた