上一页 1 2 3 4 5 6 7 ··· 12 下一页
  2013年4月24日
摘要: 谷歌浏览器扩展程序官方文档:http://code.google.com/chrome/extensions/getstarted.html#入门1. 创建文件夹如:c:\demo2. 在该文件夹下创建名为manifest.json的文件,内容格式为json格式,语法如下{"name": "My First Extension","version": "1.0","description": "The first extension that I made.","b 阅读全文
posted @ 2013-04-24 17:58 网宗 阅读(285) 评论(0) 推荐(0) 编辑
  2013年4月19日
摘要: $font_file = 'font/simhei.ttf';header("Content-type: image/png");$im = imagecreate(200,60);$bg = imagecolorallocate($im,255,255,255);$color = imagecolorallocate($im, 0, 0, 255);imagestring($im, 5, 0, 0, $qq, $color);imagefttext($im, 13, 0, 0, 35, $color, $font_file,mb_convert_encod 阅读全文
posted @ 2013-04-19 11:27 网宗 阅读(3568) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding:utf8 _*_from threading import Threadimport timedef run(n): for tc in xrange(1,60): print str(n)+'的'+str(tc)+'线程一直在执行时间:'+str(time.time())+"\n" time.sleep(1) passdef startthread(): t1 = Thread(target=run,args=(1,)) t2 = Thread(target=run,args=(2,)) ... 阅读全文
posted @ 2013-04-19 10:25 网宗 阅读(146) 评论(0) 推荐(0) 编辑
  2013年4月18日
摘要: 1 <?php 2 $bigphoto = "big.jpg"; 3 $footerphoto = "1.jpg"; 4 $biginfo = getimagesize($bigphoto); 5 $footerinfo = getimagesize($footerphoto); 6 7 $bigwidth = $biginfo[0]; 8 $bigheight = $biginfo[1]; 9 10 $footerwidth = $footerinfo[0];11 $footerheight= $foo... 阅读全文
posted @ 2013-04-18 14:29 网宗 阅读(882) 评论(0) 推荐(0) 编辑
  2013年4月17日
摘要: 解决py2exe error: MSVCP90.dll: No such file or directory其实只要在windows目录下搜索MSVCP90.dll这个文件,然后拷到python安装目录下就可以了利用py2exe生成exe文件时如果缺少MSVCP90.dll会提示***findingdllsneeded***error:MSVCP90.dll:Nosuchfileordirectory解决办法是在脚本中加入"dll_excludes":["MSVCP90.dll"],具体代码如下:#setup.pyfromdistutils.coreim 阅读全文
posted @ 2013-04-17 09:53 网宗 阅读(532) 评论(0) 推荐(0) 编辑
  2013年3月31日
该文被密码保护。 阅读全文
posted @ 2013-03-31 00:15 网宗 阅读(4) 评论(0) 推荐(0) 编辑
  2013年3月29日
该文被密码保护。 阅读全文
posted @ 2013-03-29 14:55 网宗 阅读(3) 评论(0) 推荐(0) 编辑
  2013年3月27日
摘要: The definition was found at: F:\xampp\Python27\DLLs\_sqlite3.pyd(which cannot be opened because it is a compiled extension)最后发现一场笑话'''Created on 2013-3-27@author: Administrator'''import sqlite3 as sqlitecon = sqlite.connect('caiji.db')cu = con.cursor()#cu.execute(' 阅读全文
posted @ 2013-03-27 23:34 网宗 阅读(452) 评论(0) 推荐(0) 编辑
  2013年3月22日
摘要: 阅读全文
posted @ 2013-03-22 14:11 网宗 阅读(174) 评论(0) 推荐(0) 编辑
  2013年2月27日
摘要: 1. 从wxPython导入其它任何东西之前必须先导入wx,即import wx。这是因为wxPython要对别的wxpython模块执行一些初始化工作。2.每个wxPython程序必须有一个app对象和至少一个frame对象。通常在app对象的OnInit方法中创建frame对象。一个wxPython程序可以游几个frame,其中有一个是被设计为应用程序的顶级窗口的。顶级窗口被用作为那些没有指定父窗口的对话框的默认父窗口。当所有的顶级窗口被关闭时应用程序退出。3.调用app的MainLoop方法后将进入主事件循环,将控制权交给wxPython;如果应用程序十分简单的话,应该使用wx.PySi 阅读全文
posted @ 2013-02-27 14:47 网宗 阅读(261) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页

糗乐网-糗事|乐事|天下事