标签: mongodb replicaset
连接:
client = MongoClient( 'localhost:27017', replicaSet='foo', readPreference='secondaryPreferred')
那么,如何指定是使用slave还是master? 感谢〜