点击运行
import pymongo myclient = pymongo.MongoClient('mongodb://localhost:27017/') print(myclient.list_database_names())
运行结果