上一页 1 ··· 201 202 203 204 205 206 207 208 209 ··· 342 下一页
摘要: 《python基础教程(第二版)》学习笔记 字符串(第3章)所有的基本的序列操作(索引,分片,乘法,判断成员资格,求长度,求最大最小值)对字符串也适用。字符串是不可以改变的;格式化输出字符串:使用%,%左侧是格式字符串,%右侧是需要格式化的值例如:print '%s=%d' % ('x',100) ... 阅读全文
posted @ 2014-10-18 08:07 emanlee 阅读(376) 评论(0) 推荐(0)
摘要: 《python基础教程(第二版)》学习笔记 列表/元组(第2章) 序列中的下标从0开始x='ABC' ==> x[0]='A', x[1]='B', x[2]='C'负数索引从右边开始。最后一个元素下标是-1;x[-1]='C''ABC'[0] ==> 'A'raw_input("x:")[3] 输 阅读全文
posted @ 2014-10-16 08:40 emanlee 阅读(490) 评论(0) 推荐(0)
摘要: 《python基础教程(第二版)》学习笔记 基础部分(第1章)python常用的IDE:Windows: IDLE(gui), Eclipse+PyDev; Python(command line);Linux/Unix: python1/2=0 # 整除结果为0from __future__ im... 阅读全文
posted @ 2014-10-15 17:13 emanlee 阅读(940) 评论(0) 推荐(0)
摘要: R免费使用;统计工具;# 注释,行注释块注释:anything="这是注释的内容"常用R语言编辑器:Rsutdio,Tinn-R,Eclipse+StatET;中文会有乱码帮助:?,help; ?boxplot, help(boxplot),help("[[")运行R文件:source('abc.R 阅读全文
posted @ 2014-10-12 10:35 emanlee 阅读(8963) 评论(0) 推荐(0)
摘要: args_test.R 代码如下:Args <- commandArgs()cat("Args[1]=",Args[1],"\n")cat("Args[2]=",Args[1],"\n")cat("Args[3]=",Args[3],"\n")cat("Args[4]=",Args[4],"\n") 阅读全文
posted @ 2014-10-11 07:31 emanlee 阅读(28146) 评论(3) 推荐(0)
摘要: df<-NULL new_row<-data.frame(colA="xxx",colB=123) df<-rbind(df,new_row) 阅读全文
posted @ 2014-10-11 07:20 emanlee 阅读(955) 评论(0) 推荐(0)
摘要: #==============================# ggplot2: subscript in x-axis labels(ticks) rm(list=ls(all=TRUE))library(ggplot2)data <- data.frame(names=tolow... 阅读全文
posted @ 2014-10-10 08:52 emanlee 阅读(2738) 评论(0) 推荐(0)
摘要: 折线图-ggplot2 http://blog.163.com/yugao1986@126/blog/static/6922850820131161531421/http://blog.sina.com.cn/s/blog_7cffd1400101f50v.html《R Graphics Cookb... 阅读全文
posted @ 2014-10-02 08:30 emanlee 阅读(857) 评论(0) 推荐(0)
摘要: file1-file2 => file3file1=/data/aaafile2=/data/bbbfile3=/data/cccsort -m $file3 阅读全文
posted @ 2014-09-28 17:24 emanlee 阅读(910) 评论(0) 推荐(0)
摘要: # ps aux | moreUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDaimin 13362 99.1 13.6 12942520 12641232 ? R 13:12 445:48 /usr/local/lib64/R/bin... 阅读全文
posted @ 2014-09-20 20:47 emanlee 阅读(7154) 评论(0) 推荐(0)
上一页 1 ··· 201 202 203 204 205 206 207 208 209 ··· 342 下一页