在做识别验证码时,需要对验证码图片进行一些处理,所以就学习了一下PIL的知识,下面是我总结的一些常用方法。注明:图片的操作都需要Image库,所以要使用import 
Image导入库1.打开图片import Imageimg=Image.open("code.jpg")注:有些图片名称是包含中文的,...
                            
                            
                                分类:
编程语言   时间:
2014-07-22 23:15:52   
                                阅读次数:
615
                             
                    
                        
                            
                            
                                E: 无法获得锁 /var/lib/dpkg/lock - open (11: Resource 
temporarily unavailable)E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它?解 决方法一:#:ps -aux 
(列出进程,形式如)root 5765 ...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:14:53   
                                阅读次数:
562
                             
                    
                        
                            
                            
                                问题:E: 无法获得锁 /var/cache/apt/archives/lock - open (11 
资源临时不可用)E: 无法锁定下载目录o rm /var/cache/apt/archives/locksudo rm 
/var/cache/apt/archives/locksudo rm /....
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:13:14   
                                阅读次数:
287
                             
                    
                        
                            
                            
                                OSBDM-JM60 - 9S08JM60 Based OSBDM — It includes 
interfaces and firmwareapplied to all the targets supported by the previous open 
source BDMs.It includ...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:10:13   
                                阅读次数:
678
                             
                    
                        
                            
                            
                                $_$PROCESS_ID$$read a file line by 
line#!/usr/bin/perluse strict;use warnings;my $dir ="./tmp";open (FH, ") {print 
"$_";}
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:09:35   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                //图片转化为流保存; Stream ms; byte[] picbyte; 
OpenFileDialog open = new OpenFileDialog(); open.Filter = "图片文件(*....
                            
                            
                                分类:
其他好文   时间:
2014-05-01 15:35:40   
                                阅读次数:
315
                             
                    
                        
                            
                            
                                http://www.open-open.com/lib/view/open1330657336952.htmlhttp://my.eoe.cn/720315/archive/21472.htmlhttp://zhaohaiyang.blog.51cto.com/2056753/517044http...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 17:16:45   
                                阅读次数:
430
                             
                    
                        
                            
                            
                                Open 
CASCADE,很显然后面几个是大写字母的缩写。而CASCADE实际上是CAS.CADE。CADE代表的是CAD、CAE。CAS代表什么?
                            
                            
                                分类:
其他好文   时间:
2014-04-29 17:14:46   
                                阅读次数:
594
                             
                    
                        
                            
                            
                                网页抓取和ftp访问是目前很常见的一个应用需要,无论是搜索引擎的爬虫,分析程序,资源获取程序,WebService等等都是需 
要的,自己开发抓取库当然是最好了,不过开发需要时间和周期,使用现有的Open 
source程序是个更好的选择,一来别人已经写的很好了,就近考验,二来自己使用起来非常快速,三来...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 16:45:47   
                                阅读次数:
749
                             
                    
                        
                            
                            
                                Open the LockTime Limit: 2000/1000 MS 
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 
3847Accepted Submission(s): 1661Probl...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 16:35:47   
                                阅读次数:
450