摘要:
1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 from random import choice 4 import time 5 6 ua = [] 7 ub = [] 8 l = [] 9 10 def main():11 fapai()12 print ua13 print ub14 run()15 16 def run():17 print '游戏开始'18 while True:19 r = uaGO()20 while r:21 ... 阅读全文
摘要:
整到凌晨1点半,没白忙活 阅读全文
摘要:
1 #!/usr/bin/python 2 import urllib2 3 4 server_list = [] 5 product_list = ['/dpool/hdpic/index.php'] 6 7 def main(): 8 for ip in server_list: 9 for product in product_list:10 url = 'http://%s%s' % (ip, product)11 request = urllib2.Request(url)12 re... 阅读全文
摘要:
今天在编译node.js的时候发生此错误,导致编译错误无法继续ld: cannot find -lgcc_s问题原因:gcc编译模块没有找到,起始是软连接失效了,在find -name 'libgcc_s.so' 后发现有的目录下的gcc*_s.so为红色解决方法:重新软链接 ln -s /lib/libgcc_s.so.1 libgcc_s.so 阅读全文
摘要:
#!/usr/bin/pythonimport sysimport Imagedef main(): if len(sys.argv) < 2: filename = '1.bmp' else: filename = sys.argv[1] im = Image.open(filename) im = im.convert('RGBA') x, y = im.size pixdata = im.load() for j in xrange(y): for i in xrange(x): i... 阅读全文
摘要:
解决FT_Reference_Face下载http://packages.debian.org/squeeze/i386/libfreetype6/download 阅读全文
摘要:
sudoapt-getinstallmesa-utils 阅读全文
摘要:
打开GBK编码的中文文件时报如下BUG====== Debug Information ======Version: 2217Platform: linuxArch: x32Path: ['/opt/Sublime Text 2/lib/python26.zip', '/opt/Sublime Text 2/lib/python2.6', '/opt/Sublime Text 2/lib/python2.6/plat-linux2', '/opt/Sublime Text 2/lib/python2.6/lib-tk', ' 阅读全文
摘要:
<select name="passenger_1_seat_detail_select" style="display: none" id="passenger_1_seat_detail_select" onchange="setSeatDetail('1')"> <option value='0' >随机</option> <option value='3' ... 阅读全文
摘要:
var d = new Date();var re = new RegExp(d.getFullYear()+"-0?"+(d.getMonth()+1)+"-0?"+d.getDate());$.each($('table:eq(1) tr'),function(i){ var ctime = ''; ctime = $(this).children('td').eq(6).text(); if (re.test(ctime)) { $(this).css('background-color 阅读全文