上一页 1 ··· 3 4 5 6 7
摘要: Maven, 是基于项目对象模型(Project Object Model, POM),通过一小段描述信息来管理项目的构建,报告,文档的软件项目管理工具。目前,绝大多数开发人员都把 Ant 当作 Java 编程项目的标准构建工具。但是,Ant 的项目管理工具(作为 make的替代工具)不能满足绝大多... 阅读全文
posted @ 2015-04-07 23:26 robotor 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1、安装JDKrzsz 上传到服务器安装 jdk 7u552、安装tomcat下载tomcat 7http://apache.fayea.com/tomcat/tomcat-7/v7.0.61/bin/apache-tomcat-7.0.61.tar.gz3、安装nginxnginx 安装依赖一下三... 阅读全文
posted @ 2015-04-04 01:15 robotor 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: 1、list和tuple 切片:a=range(100)a[0:]= 1--99a[1:10]=1--9a[1:50:2]=1,3,5.。。。a[-1:]=99a[-100:]=0--99a[-100:-50:2]=0,2,4,6......字符串切片操作也是一样的def firstCharUppe... 阅读全文
posted @ 2015-01-20 16:57 robotor 阅读(464) 评论(0) 推荐(0) 编辑
摘要: python 中自定义函数 使用def 即define ;后面跟上函数名称;及();括号中放入的是参数,可以为空自定义 sum,计算list 中元素的平方和def square_of_sum(L): sum = 0 for x in L: sum = sum + x * x... 阅读全文
posted @ 2015-01-18 19:06 robotor 阅读(2571) 评论(0) 推荐(0) 编辑
摘要: sum、计算和,此函数传入的参数是listL = []x = 1while x >> cmp(1, 2)-1>>> cmp(2, 1)1>>> cmp(3, 3)0abs、绝对值>>> abs(100)100>>> abs(-20)20>>> abs(12.34)12.34 阅读全文
posted @ 2015-01-18 18:18 robotor 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 创建个子字典 用大括号 {}字典是包括 key 和valued = { 'Adam': 95, 'Lisa': 85, 'Bart': 59}print 'Adam:',d.get('Adam')print 'Lisa:',d.get('Lisa')print 'Bart:',d.... 阅读全文
posted @ 2015-01-18 12:47 robotor 阅读(199) 评论(0) 推荐(0) 编辑
摘要: for x in [ '1','2','3','4','5','6','7','8','9']: for y in ['0', '1','2','3','4','5','6','7','8','9' ]: if x<y: print x+y 阅读全文
posted @ 2015-01-18 10:59 robotor 阅读(433) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# Filename: backup_ver4.pyimportosimporttime# 1. The files and directories to be backed up are specified in a list.source = ['/home/s... 阅读全文
posted @ 2015-01-17 22:37 robotor 阅读(374) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7