python
快乐的小小编
这个作者很懒,什么都没留下…
展开
-
安装第三方库出现 Python version 2.7 required, which was not found in the registry
安装第三方库出现 Python version 2.7 required, which was not found in the registry 建立一个文件 register.py 内容如下. 然后执行该脚本. import sys from _winreg import * # tweak as necessary version = sys.version[:3]转载 2015-12-15 15:14:55 · 448 阅读 · 0 评论 -
python 网页爬取数据并存到数据库中
# -*- coding: utf-8 -*- import urllib import xml.dom.minidom import MySQLdb import datetime TimePoint = datetime.datetime.now() #mysql db=MySQLdb.Connect(host="localhost",user="root",passwd="root",d转载 2015-12-16 14:31:44 · 1498 阅读 · 0 评论