![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 72
iamlike
COCOS2D-IPHONE......
展开
-
[PYTHON] 将perforce的 changelist放到 sqlite 数据库里面
<br />from P4 import P4 import sqlite3 import time def InsertChanges(): #insert change to db p4=P4() p4.connect() #exittable=cursor.execute("select count(*) from sqlite_master where type='table' and name='changes'") test whether the t原创 2010-11-02 17:10:00 · 794 阅读 · 0 评论 -
stocks
import urllib link="http://finance.yahoo.com/q/cp?s=^STI" html=urllib.urlopen(link).read() from sgmllib import SGMLParser import time c原创 2011-09-28 00:37:39 · 686 阅读 · 0 评论 -
下载jandan无聊图
import urllib2 import urllib import re import os import multiprocessing import time opener=urllib2.build_opener(urllib2.ProxyHandler({"http":"proxy"}),urllib2.HTTPHandler(debuglevel=1)) urll原创 2013-03-11 18:52:39 · 974 阅读 · 0 评论 -
通过PNG 和相应的PLIST文件得到小文件
下面的脚本 是可以把一个大的PNG图片里面相应的小文件得到,需要安装PYTHON IMAGE模块,这个脚本是从stackoverflow得到 http://stackoverflow.com/questions/6086615/how-can-i-extract-png-images-from-plist-files/17838628#17838628 #! /usr/lical/bin/py转载 2013-12-24 17:35:46 · 1796 阅读 · 0 评论