码迷,mamicode.com
首页 >  
搜索关键字:pil    ( 2160个结果
fool
from PIL import Imageimg = Image.open("D:\\pic2\\CZA3302.png")(w,h) = img.sizeim=img.convert("RGB")for i in xrange(w): for j in xrange(h): pos=(i,j) r ...
分类:其他好文   时间:2016-12-02 19:04:52    阅读次数:143
Beginning Scala study note(7) Trait
A trait provides code reusability in Scala by encapsulating method and state and then offing possibility of mixing them into classes thus allowing cod ...
分类:其他好文   时间:2016-12-02 03:16:24    阅读次数:164
CodeBlocks安装及配置注意事项
在使用codeblocks的时候,网上一般只会提供CodeBlocks的项目文件,并不包括编译器和调试器,要使用CodeBlocks的完整功能需要在官网下载完整版. 如图可下载mingw版本. 进入CodeBlocks之后可能需要配置编译器和调试器,如果使用C语言编译器可以按照如下配置编译器 进入S ...
分类:其他好文   时间:2016-12-01 12:03:48    阅读次数:1477
linux 不同的maven工程使用不同的jdk环境
1、原系统中的jdk为1.6,而新的工程使用的是1.7的jdk,发布新工程时需做如下修改: 2、若在发布过程中,报错: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile  ...
分类:系统相关   时间:2016-11-30 14:57:21    阅读次数:192
beautifulsoup测试
import re from bs4 import BeautifulSoup html_doc = """ <html><head><title>The Dormouse's story</title></head> <body> <p class="title"><b>The Dormouse' ...
分类:其他好文   时间:2016-11-30 02:50:15    阅读次数:250
Virtual method table
https://en.wikipedia.org/wiki/Virtual_method_table The g++ compiler implements the multiple inheritance of the classes B1 and B2 in class D using two ...
分类:其他好文   时间:2016-11-30 02:31:24    阅读次数:152
你不知道的Javascript(上卷)读书笔记之一 ---- 作用域
你不知道的Javascript(上卷)这本书在我看来是一本还不错的书籍,这本书用比较简洁的语言来描述Js的那些”坑”,在这里写一些博客记录一下笔记以便消化吸收。 1 编译原理 在此书中,开始便提出:Javascript是一门编译型语言,我一开始以为这是国内翻译的锅,翻译的不够准确,后来我还专门去gi... ...
分类:编程语言   时间:2016-11-28 23:10:38    阅读次数:174
ASP.NET 一般处理程序显示用户信息列表功能的实现
HTML模版页面UserList.htm <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...
分类:Web程序   时间:2016-11-28 08:06:49    阅读次数:210
PIL show() 报错
将 PIL 安装目录下的 ImageShow.py 文件的第 99 行:(我的 Python 安装在 D:\Program Files\python 2.6,那 ImageShow.py 文件在:D:\Program Files\python 2.6\Lib\site-packages\PIL\Im ...
分类:其他好文   时间:2016-11-27 11:54:48    阅读次数:168
正则表达式
1.使用步骤 ①用import.re导入正则表达式模块 ②用re.compile()函数创建一个Regex对象(记得用原始字符串r'…') ③向Regex对象的search()方法传入想要找的字符串,返回一个Match对象 ④调用Match对象的group()方法,返回实际匹配文本的字符串 2.符号 ...
分类:其他好文   时间:2016-11-26 22:59:56    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!