2024-06-01 13:28:52 发布
网友
我有这个型号:
class location(ndb.Model): geoLocation = ndb.GeoPtProperty()
我使用此函数声明位置模型:
但是我得到了一个错误:NoneType'object没有属性'lat'
怎么了?在
来自NDB Document
You can construct one with two floats like ndb.GeoPt(52.37, 4.88) or with a string ndb.GeoPt("52.37, 4.88"). (This is actually the same class as db.GeoPt)
所以任务是
location1.geoLocation = ndb.GeoPt(lat,lon)
来自NDB Document
所以任务是
相关问题 更多 >
编程相关推荐