如何在 html 中显示 python 变量的值(在这种情况下,它是我的 Entity 类的键)?
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>
'''