03 2016 档案

摘要:1. apt-get install mysql-server 2. apt-get isntall mysql-client 修改 /etc/mysql/my.cnf #bind-address = 127.0.0.1 本地登录 mysql -u root -p grant all on *.* 阅读全文
posted @ 2016-03-22 09:31 ahuo 阅读(235) 评论(0) 推荐(0) 编辑
摘要:from poster.encode import multipart_encode from poster.streaminghttp import register_openers import urllib2 register_openers() #datagen, headers = multipart_encode({"Img": open("1.jpg", "rb")}) #re... 阅读全文
posted @ 2016-03-16 16:45 ahuo 阅读(552) 评论(0) 推荐(0) 编辑
摘要:1.使用ssl创建未经验证的上下文,在urlopen中传入上下文参数 import sslimport urllib2 context = ssl._create_unverified_context()print urllib2.urlopen("https://www.12306.cn/", c 阅读全文
posted @ 2016-03-07 11:08 ahuo 阅读(1990) 评论(0) 推荐(0) 编辑
摘要:find src -type d | sed 's/src/mkdir -p dst/'|sh 阅读全文
posted @ 2016-03-02 11:14 ahuo 阅读(1195) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示