我是python和htmlpy的新手。我有一个python结果,我想在一个特定的类中输出它。目前我正在做以下工作:
counter += 1
roads = ""
for m in suggestedroute:
if suggestedroute is not 0:
output = "If you're taking Route " + counter.__str__() + " try to avoid: "
roads += m
if counter is not 1:
result += ". "+output + roads
else:
result +=output + roads
self.app.html = u"<div style='color:red'> "+result+u"<div>"
然而结果是覆盖了整个html页面。如何让它在一个特定类的div中查看
目前没有回答
相关问题 更多 >
编程相关推荐