def mongo(db, table):
    """
    传入对应的数据库,和对应的table就可以使其方法
    from zhangte import *
    sheet = mongo(db,table)
    sheet.findall()
    sheet.insetr_ont(dict)

    """
    import pymongo
    client = pymongo.MongoClient('localhost', 27017)
    walden = client[db]
    sheet_tab = walden[table]
    return sheet_tab
