# coding=utf-8
# author = 'Gavin'
# project is py_learning
# the file name is mongo
# date = 2017/6/7
# 导入mongo模块
from pymongo import MongoClient

client = MongoClient('122.114.95.69', 27017)
db = client.pymongo
collection = db.art

import datetime

post = {"作者": "香酥鸭",
		"text": "Use pymongo connectioning mongodb!",
		"tags": ["python", "mongodb", "mongo"],
		"date": datetime.datetime.utcnow()}
posts = db.art
insert = collection.insert(post)

for i in list(range(1, 101)):
	print(i)
	insert
