如何在Flask中使用MongoDB数据库

在Flask中使用MongoDB数据库需要安装pymongo模块,可以通过pip安装:

pip install pymongo