为什么我不能将此变量html_str设置为等于wikisum字符串变量?这是一个简单的语法错误吗?
import wikipedia
from django.db import models
from django.template import Template, Context
wikisum = wikipedia.summary("Julius Caesar", sentences=2)
print wikisum
html_str = wikisum
Html_file= open("index.html","w")
Html_file.write(html_str)
Html_file.close()
错误是: