这里是在python中以set格式输出sql查询的输出。如何只将值提取到变量 结果集({'(你' tx',无)':[{u'价值':31399946096.0,你'时间':你' 2016-10-05T05:06:15.009545466Z'}]})
我需要v = 31399946096.0
感谢
答案 0 :(得分:0)
I tried this way to get it the value out:
result=({'(u'tx', None)': [{u'value': 31399946096.0, u'time': u'2016-10-05T05:06:15.009545466Z'}]})
r=list(result)
for i in r:
print i[0]['value']
which yields 31399946096.0
.
Is there any other way?