上一页 1 2 3 4 5 6 ··· 37 下一页
摘要: HelloKitty会不会很好奇第7个怎么写。嘿嘿div a:nth-child(7) 也不难。第二个呢,可以这么写div a:first-child+a可是倒数第二个该怎么写呢?最终我还是找到了css标准http://www.w3.org/TR/selectors/#nth-last-child-pseudo也许这个是学习css的最佳途径 阅读全文
posted @ 2013-11-15 20:42 Epirus 阅读(267) 评论(0) 推荐(0) 编辑
摘要: ln如果使用相对路径确实容易出现问题。比如:cd Desktop/dart/ln -s ./DartEditor ../lee 这样子创建的链接是broken的所以比较好的方案是使用绝对的路径ln -s ~/Desktop/dart/DartEditor ~/Desktop/leeorln -s /home/username/Desktop/dart/DartEditor /home/Desktop/lee也可以使用相对的路径啦cd Desktopln -s ./dart/DartEditor lee这样子也是可以的。先进入你要存放链接的目录,然后找到目标来源,链接.ok 阅读全文
posted @ 2013-11-15 20:34 Epirus 阅读(2113) 评论(0) 推荐(0) 编辑
摘要: main.py#!/bin/python #coding=utf-8 import tornado.ioloop import tornado.web,pymongo,datetime class BaseHandler(tornado.web.RequestHandler): def today(self): date=datetime.datetime.now() year=str(date.year)[-2:] month=str(date.month) da... 阅读全文
posted @ 2013-11-10 20:57 Epirus 阅读(247) 评论(0) 推荐(0) 编辑
摘要: open dbcollection=pymongo.Connection('localhost',27017).job.listinsert datacollections.insert(document)Updatefrom bson.objectid importObjectIdcollection.update("_id":ObjectId('fwefewf34234'),{"$set":{'lastTime':'12}}) 阅读全文
posted @ 2013-11-10 13:31 Epirus 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #!/bin/python#encoding=utf-8import urllib,lxml.html,lxml.html.soupparser,re,pymongourl1="http://sou.zhaopin.com/jobs/SearchResult.ashx?in=210500%3b160400%3b160000&pd=1&jl=%E7%A6%8F%E5%B7%9E&sm=0&et=2&p=1"url="http://sou.zhaopin.com/jobs/SearchResult.ashx?in=210500% 阅读全文
posted @ 2013-11-10 12:32 Epirus 阅读(496) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 37 下一页