如何在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