会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Robotor
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
2015年4月7日
linux 下安装maven
摘要: Maven, 是基于项目对象模型(Project Object Model, POM),通过一小段描述信息来管理项目的构建,报告,文档的软件项目管理工具。目前,绝大多数开发人员都把 Ant 当作 Java 编程项目的标准构建工具。但是,Ant 的项目管理工具(作为 make的替代工具)不能满足绝大多...
阅读全文
posted @ 2015-04-07 23:26 robotor
阅读(432)
评论(0)
推荐(0)
2015年4月4日
tomcat+nginx+mysql+jdk 环境搭建
摘要: 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
阅读(1530)
评论(0)
推荐(0)
2015年1月20日
list 切片、字符串切片
摘要: 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
阅读(465)
评论(0)
推荐(0)
2015年1月18日
定义函数(def)
摘要: 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
阅读(2642)
评论(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
阅读(264)
评论(0)
推荐(0)
dict 、set 详解
摘要: 创建个子字典 用大括号 {}字典是包括 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
阅读(208)
评论(0)
推荐(0)
多个for 循环嵌套应用
摘要: 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
阅读(443)
评论(0)
推荐(0)
2015年1月17日
python_backup
摘要: #!/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
阅读(381)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
公告