码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
入门教程2
下面是一个非常有用的小教程基本上也就记住了 ,但是需要长时间复习 if句(判断语句) i = 1if i > 0: print 'positive i' i = i + 1elif i == 0: print 'i is 0' i = i * 10else: print 'negative i' i ...
分类:其他好文   时间:2016-04-20 11:36:01    阅读次数:120
如何 ︰ 执行批量更新和插入使用.NET 提供程序在 C#.NET OpenXML
https://support.microsoft.com/zh-cn/kb/315968 如何 ︰ 执行批量更新和插入使用.NET 提供程序在 C#.NET OpenXML Email Print Email Print Email Print 注意:这篇文章是由无人工介入的微软自动的 ...
分类:Windows程序   时间:2016-04-20 11:12:48    阅读次数:242
python的复制与引用
简单复制是引用 a=[1,23,4] b=a #这是引用 b.append(2323) print(a,b) #([1, 23, 4, 2323], [1, 23, 4, 2323]) a=[1,23,4] b=a #这是引用 b.append(2323) print(a,b) #([1, 23, ...
分类:编程语言   时间:2016-04-20 08:17:33    阅读次数:205
centos6 常用重要命令
1、抽取网卡配置文件中的IP地址ifconfigeth0|awk-F‘[:]+‘‘NR==2{print$4}‘2、过滤掉注释和空行查看配置文件,过滤掉注释和空行将内容写入新文件grep-Ev"#|^$"httpd.confgrep-Ev"#|^$"httpd.conf>httpd.conf.ori3、一键创建多个目录,并将首页文件分别放入每个创建的目录[roo..
分类:其他好文   时间:2016-04-20 02:13:52    阅读次数:357
nrpe 执行命令报错NRPE: Unable to read output
在客户端编写的一个脚本check_ssh_auto.sh#!/bin/basha=`/bin/cat/etc/ssh/sshd_config|grepPasswordAuthentication|grep-v"^#"|awk‘{print$2}‘`if["$a"="yes"];thenecho"SSHauthentication:WARNINGPleaseamendthewarningSSHauthenticationforkeyauthentication;"$(exit1)elsee..
分类:其他好文   时间:2016-04-19 20:21:54    阅读次数:261
Python基础:collections模块
collections是Python内建的一个集合模块,提供了许多有用的集合类。1.Counter计数器Counter是一个简单的计数器,例如,统计字符出现的个数:>>>import collections>>>obj= collections.Counter(‘applebanana‘)>>>print(obj)Counter({‘a‘:4,‘n‘: 2,‘..
分类:编程语言   时间:2016-04-19 20:13:50    阅读次数:185
web day11 JSP基础,Cookie,HttpSession
主要内容: 1. JSP基础 2. Cookie 3. HttpSession   ================================   JSP基础   1. jsp的作用:   *Servlet:    > 缺点:不适合设置html响应体,需要大量的response.getWriter().print("")    > 优点:动态资源,可以编程。   *...
分类:Web程序   时间:2016-04-19 19:52:16    阅读次数:195
Python 二分查找
def search(data_set,find_num): mid = len(data_set) /2 print mid if len(data_set) == 1: if data_set[mid] == find_num: print ('End start: ',find_num) re ...
分类:编程语言   时间:2016-04-19 19:29:45    阅读次数:224
C++实现装饰者模式
版权声明:本文为博主原创文章,未经博主允许不得转载。 版权声明:本文为博主原创文章,未经博主允许不得转载。 多个主题对象,每个主题对象都有三个观察者,感觉有点问题,说不好。有问题请提出来。 [cpp] view plain copy print? /* 观察者模式:定义一种一对多的依赖,让多个观察者 ...
分类:编程语言   时间:2016-04-19 14:20:09    阅读次数:185
C++实现中介者模式
] view plain copy print? ] view plain copy print? ...
分类:编程语言   时间:2016-04-19 14:11:14    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!