上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: alter table t_foo change `str` `str` varchar(100) character set utf8 not null ; 阅读全文
posted @ 2018-11-30 11:59 小白闯天下 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 def getTitle(self,url): 2 #get title 3 title = 'time out' 4 try: 5 self.res = requests.get(url,timeout=5) 6 7 8 soup = Beau... 阅读全文
posted @ 2018-10-11 15:45 小白闯天下 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 实例 比如先切换到 $GOPATH 的 src 目录,cd $GOPATH/src,然后按需要下载: git clone --depth 1 https://github.com/golang/tools.git golang.org/x/tools git clone --depth 1 http 阅读全文
posted @ 2018-09-05 13:41 小白闯天下 阅读(397) 评论(0) 推荐(0) 编辑
摘要: var a =document.getElementsByClassName('SearchResult__title-text'); for (i = 0;i < a.length;i++){ console.log(a[i].innerText); } var a =document.getElementsByClassName('search-result-item... 阅读全文
posted @ 2018-08-01 09:45 小白闯天下 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Cent OS 7上需要把mongoDB添加到systemd,否则会出现上面的错误 将mongoDB添加到systemd # vim /usr/lib/systemd/system/mongod.service [Unit]Description=mongodb database [Service] 阅读全文
posted @ 2018-07-02 16:05 小白闯天下 阅读(2784) 评论(0) 推荐(0) 编辑
摘要: https://packages.erlang-solutions.com/erlang/ 阅读全文
posted @ 2018-06-05 16:00 小白闯天下 阅读(131) 评论(0) 推荐(0) 编辑
摘要: // 动态加载script $.load_script = function(xyUrl, callback) { var head = doc.getElementsByTagName('head')[0]; var script = doc.createElement('script'); script.type = 'text/javascript'; script.s... 阅读全文
posted @ 2018-06-04 11:23 小白闯天下 阅读(98) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding:utf-8 # Author: closed -- # Purpose: Check which keys have been blocked # Created: 2018/05/17 # version: Python3.6 # from requests_html import HTMLSession keyword =... 阅读全文
posted @ 2018-06-01 17:09 小白闯天下 阅读(164) 评论(0) 推荐(0) 编辑
摘要: def getCookie(self): #获取cookie spiderFirefox = webdriver.Firefox() spiderFirefox.get("http://www.cnvd.org.cn/") time.sleep(5) cookies = "... 阅读全文
posted @ 2018-05-02 10:39 小白闯天下 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 正常来讲是支持文件夹的。 但实际执行的时候发现: pull: building file list...0 files pulled. 0 files skipped. 其实出现这个提示,归根到底还是权限问题。 解决方法如下: chmod -R 777 目标文件夹。 然后再执行命令就可以了。 阅读全文
posted @ 2018-04-03 15:36 小白闯天下 阅读(7056) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 14 下一页