如何在html中显示python变量的值(在这种情况下,它是我的Entity类的关键)?在HTML中显示Python值
from google.appengine.ext import db
class Entity(db.Expando):
pass
e = Entity()
e.put() # id is assigned
k = e.key() # key is complete
id = k.id() # system assigned id
html='''
<html>
<head></head>
<body>
<label>Key: %(k) </label>
<br>
</body>
</html>
'''
见https://developers.google.com/appengine/docs/python/gettingstarted/handlingforms – user1929959 2013-03-15 14:34:03