实验:HelloWorld程序开发
1、安装Python MongoDB驱动程序
python
Python 2.7.17 (default, Feb 27 2021, 15:10:58)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymongo
>>> pymongo.version
'3.11.3'
>>>
2、创建连接
3、数据库操作:插入用户
4、更新用户