要限制MongoDB 中的结果,我们使用 limit() 方法。 ... mycol = mydb["customers"] myresult = mycol.find(). limit(5) # 打印结果: for x in myresult: print(x).
確定! 回上一頁