db = UnQLite('test.db')
data = db.collection('data')
print(data.fetch(0))
这打印
{'id': b'abc', 'type': b'business', 'state': b'AZ', 'latitude': 33.3482589,
'name': b"ABC Restaurant", 'full_address': b'1835 E ABC Rd, Ste C109, Phoenix, AZ 85284',
'categories': [b'Restaurants', b'Buffets', b'Italian'],
'open': True, 'stars': 4, 'city': b'Phoenix', 'neighborhoods': [],
'__id': 0, 'review_count': 122, 'longitude': -111.9088346}
如何获取 City 的值“Phoenix”?
type(data.fetch(0))
打印类 'dict'
我正在查看 UnQlite 文档,但没有找到太多。请帮忙。