mongodb查询返回“无”结果

时间:2019-10-17 15:10:32

标签: python mongodb-query

结果应为:

'"timestamp:2017-01-01 00:00:00"'

但返回"none" 我哪里出问题了?

pipeline = [{"$match":{"timestamp":"2017-01-01 00:00:00"}}]
cursor=mycol.aggregate(pipeline)
result=low.append(cursor)
print(result)

1 个答案:

答案 0 :(得分:0)

问题出在mongo程序上。

import matplotlib.pyplot as plt

axex=[0.001, 0.01, 0.1, 1.0, 10.0, 100.0, 1000.0]
axey=[0.15686275, 0.28808446, 0.53242836, 1., 1., 1., 1.]

plt.figure()
plt.plot(axex, axey, linestyle='--', label='Results')
plt.xscale('log') # Set log scale on X-axis
plt.title("Show Test")
plt.xlabel("X Axis")
plt.ylabel("Y Axis")
plt.show()