码迷,mamicode.com
首页 >  
搜索关键字:python paramiko threading    ( 137519个结果)
数学之路-python计算实战(11)-机器视觉-图像增强
在计算机领域中,灰度(Gray scale)数字图像是每个像素只有一个采样颜色的图像。这类图像通常显示为从最暗黑色到最亮的白色的灰度,尽管理论上这个采样可以任何颜色的不同深浅,甚至可以是不同亮度上的不同颜色。灰度图像与黑白图像不同,在计算机图像领域中黑白图像只有黑白两种颜色,灰度图像在黑色与白色之间还有许多级的颜色深度。用于显示的灰度图像通常用每个采样像素8 bits的非线性尺度来保存,这样可以有...
分类:编程语言   时间:2014-07-15 13:15:02    阅读次数:337
泛型的静态成员
------------------------------------StaticDome.csusingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication3 { publicclassStaticDome<T> { publicstaticintx; } }------------..
分类:其他好文   时间:2014-07-15 12:17:08    阅读次数:182
python 编程实例 6
#python100例6.py#输出9*9口决foriinrange(1,10):forjinrange(1,10):a=i*jprint(i,"*",j,"=",a)
分类:编程语言   时间:2014-07-15 11:57:26    阅读次数:338
python 编程实例 7
#python100例9.py#用*打印出一个棱形a=int(input("biangchang:"))#获取由几个*边长的棱形i=1j=1whilei<a+1:print(""*(a-i),"*"*(2*i-1))i=i+1whilej<a+1:print(""*j,"*"*(2*(a-j)-1))j=j+1
分类:编程语言   时间:2014-07-15 11:46:22    阅读次数:323
awk基础知识小结(1)
1、使用规则 awk适合于文本处理和报表生成,它还有许多精心设计的特性,允许进行需要特殊技巧程序设计。 awk 的语法较为常见。它借鉴了某些语言的一些精华部分,如C语言、python和bash。 第一个awk 让我们继续,开始使用awk,以了解其工作原理。在命令行中输入以下命令: $awk‘..
分类:其他好文   时间:2014-07-15 11:39:54    阅读次数:323
泛型约束
-----------------------------------IDocument.cs(定义一个接口)usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication3 { publicinterfaceIDocument { stringTitle{get;set;}//文..
分类:其他好文   时间:2014-07-15 11:38:31    阅读次数:272
类型安全---泛型与非泛型
============================================================非泛型-------------------------LinkedListNode.cs类usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication1 { publi..
分类:其他好文   时间:2014-07-15 11:33:25    阅读次数:273
python 中正则表达式
.匹配除换行符以外的任意字符\w匹配字母或数字或下划线或汉字\s匹配任意的空白符\d匹配数字\b匹配单词的开始或结束^匹配字符串的开始$匹配字符串的结束代码/语法说明*重复零次或更多次+重复一次或更多次?重复零次或一次{n}重复n次{n,}重复n次或更多次{n,m}重复n到m次[aeiou]就..
分类:编程语言   时间:2014-07-15 11:22:22    阅读次数:351
Python批量修改一个目录文件名
Python批量修改一个目录文件名#!/usr/bin/envpython #-*-coding:utf-8-*- importre importos importtime #str.split(string)分割字符串 #‘连接符‘.join(list)将列表组成字符串 defchange_name(path): globali ifnotos.path.isdir(path)andnotos.path.isfile(path): returnF..
分类:编程语言   时间:2014-07-15 11:05:00    阅读次数:309
Python的main函数
初学Python,写C++时,习惯写上main函数,作为程序入口,但是,在写Python时,只能看见__name__=="__main__",于是,探个究竟,Python程序从哪开始?啧啧,虽然它多数是脚本~转自下面链接的一段话:http://blog.163.com/benben_long/blog/static/199458243201212123099/if__name..
分类:编程语言   时间:2014-07-15 10:49:30    阅读次数:290
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!