发布时间:2017-05-03 16:50:26
var conn = new Mongo('host:port');db = conn.getDB('admin');db.auth('root', 'test');database_names = ["crawl_data","company_data","crawl_merge_linkattr","crawl_merge_webpage","crawl_params","final_data","mfile","schedule_data","task_collect", 'single_src']for(var i = 0; i < database_names.length;.........【阅读全文】
发布时间:2017-02-12 12:46:04
一、Python中转义字符 正则表达式使用反斜杠" \ "来代表特殊形式或用作转义字符,这里跟Python的语法冲突,因此,Python用" \\\\ "表示正则表达式中的" \ ",因为正则表达式中如果要匹配" \ ",需要用\来转义,变成" \\ ",而Pyt.........【阅读全文】