摘要: 虚拟环境依赖安装 开发会用 virtualenv 来管理多个开发环境 Linux/MacOS 下 virtualenvwrapper 使得virtualenv变得更好用,所以我们一起安装了 1 sudo pip install virtualenv virtualenvwrapper 修改~/.ba 阅读全文
posted @ 2018-01-27 20:46 喻晓生 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>网易云音乐评论测试</title> <script>function showSite(str){ if (str=="") { document.getElementById(" 阅读全文
posted @ 2018-01-27 14:50 喻晓生 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*- coding: UTF-8 -*-########################################################################## File Name: addreplace.py# Author: y 阅读全文
posted @ 2018-01-27 14:46 喻晓生 阅读(3527) 评论(1) 推荐(0) 编辑
摘要: from collections import ChainMapimport collectionsvalue = ChainMap()for list_num in range(1,13): li_list = list_num + 1 value["li_name%s"%(list_num)] 阅读全文
posted @ 2018-01-12 22:33 喻晓生 阅读(3993) 评论(0) 推荐(0) 编辑
摘要: 1 下载源码包 (https://www.python.org/downloads/release/python-352/) 2 解压Python-3.5.2.tar.xz 3 sudo ./configure --prefix=/usr/local/python3.5.2 (/usr/local/ 阅读全文
posted @ 2017-12-26 21:07 喻晓生 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: import urllib.requestimport jsonimport ossave_dir = "D:\英雄联盟皮肤"if not os.path.exists(save_dir): os.mkdir(save_dir)for i in range(99,143): for cnt in r 阅读全文
posted @ 2017-12-05 23:33 喻晓生 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 选自:http://www.jianshu.com/p/925a6070707fimport urllib.requestimport jsonimport osresponse = urllib.request.urlopen("http://pvp.qq.com/web201605/js/her 阅读全文
posted @ 2017-12-05 21:12 喻晓生 阅读(317) 评论(0) 推荐(0) 编辑
摘要: import threadingimport timeclass Mythread(threading.Thread): def __init__(self,threadID,name,counter): threading.Thread.__init__(self) self.threadID = 阅读全文
posted @ 2017-11-28 15:01 喻晓生 阅读(3088) 评论(0) 推荐(0) 编辑
摘要: import _threadimport time#1 线程函数def print_time(thread_name,delaytime): count = 0; while count < 5: time.sleep(delaytime); count += 1; print("%s %s" % 阅读全文
posted @ 2017-11-28 10:34 喻晓生 阅读(285) 评论(0) 推荐(0) 编辑
摘要: from bs4 import BeautifulSoupimport requestsimport timeimport MySQLdbimport xlwtfrom datetime import datetime"""data = {'html': 'http://bj.xiaozhu.com/fangzi/2803985763.html', 'title': '国贸双井10号... 阅读全文
posted @ 2017-08-28 09:13 喻晓生 阅读(277) 评论(0) 推荐(0) 编辑