准备数据 from pymongo import MongoClient import datetime client=MongoClient('mongodb://localhost:27017') table=client['db1']['emp'] l=[ ('张飞','male',18,'20170301','',7300.33,401,1), #以下是教学部 ('张云','male',78,'20150302','teacher',1000000.31,401,1), ('刘备','m…