我最近开始使用Python。我在Couchdb中有一个名为Student的数据库。我在其中具有[英语,数学,科学,总数,百分比]等属性。我想使用python显示我的学生数据库中的所有文档。我无法访问所有文件。我尝试了以下代码,但没有工作
couch = couchdb.Server()
db = couch['student']
rows = db.view('_all_docs', include_docs=True)
for row in rows:
doc = db.get(row)
print(doc['english'])
Run Code Online (Sandbox Code Playgroud)