11 2015 档案

摘要:一.shift 参数左移 until [ $# -eq 0 ]doecho "第一个参数为: $1 参数个数为: $#"shiftdone 二.wc 该命令用于统计指定文件中的字节数、字数、行数。该命令各选项含义如下: -l 统计行数 -w 统计字数 -c 统计字节数 这些选项可以组合使用。输出列的 阅读全文
posted @ 2015-11-27 16:11 chencesc 阅读(198) 评论(0) 推荐(0)
摘要:1. 定义 :func() {}或function func() {}2.参数func 1 2 3 4 可在函数中直接调$1来使用,>=10的用${n} 阅读全文
posted @ 2015-11-27 15:30 chencesc 阅读(134) 评论(0) 推荐(0)
摘要:一.if语句 if [expression] then elif[expression] then else fi 注 : expression前后要有空格;判断相等用 = 而不是 == ; then可以另起一行,也可以与if同行,同行时要加';'; http://lxsym.blog.51cto. 阅读全文
posted @ 2015-11-27 14:19 chencesc 阅读(307) 评论(0) 推荐(0)
摘要:字符串 : 1.单引号: str = 'value'单引号字符串的限制: 单引号里的任何字符都会原样输出,单引号字符串中的变量是无效的; 单引号字串中不能出现单引号(对单引号使用转义符后也不行);2.双引号: str = "value is \"${name}\" \n" str = "valu... 阅读全文
posted @ 2015-11-27 13:25 chencesc 阅读(236) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-11-27 13:06 chencesc 阅读(141) 评论(0) 推荐(0)
摘要:http://c.biancheng.net/cpp/view/2739.html1.定义 : 直接定义 value="hi"注:等号前后不能加空格2.使用 : 加美元符号your_name="cesc"echo $your_nameecho ${your_name} 推荐给所有变量加上花括号,... 阅读全文
posted @ 2015-11-27 11:01 chencesc 阅读(167) 评论(0) 推荐(0)
摘要:http://polaris.blog.51cto.com/1146394/377468/字符是各种文字和符号的总称,包括各个国家文字、标点符号、图形符号、数字等。字符集是多个字符的集合,字符集种类较多,每个字符集包含的字符个数不同, 常见字符集有:ASCII字符集、ISO 8859字符集、GB23... 阅读全文
posted @ 2015-11-27 10:19 chencesc 阅读(639) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/suofiya2008/article/details/5579413 阅读全文
posted @ 2015-11-25 17:20 chencesc 阅读(262) 评论(0) 推荐(0)
摘要:http://www.jb51.net/article/60510.htmimport xlrdimport xlwt# 打开文件workbook = xlrd.open_workbook(r'F:\demo.xlsx') 阅读全文
posted @ 2015-11-25 16:21 chencesc 阅读(224) 评论(0) 推荐(0)
摘要:1.你叫什么名字 ? Comment tu(您) t'appelles ? (非正式)Comment vous(你们,您) appellez-vous ? (正式)Comment 如何,怎么,怎样n.m. 如何产生, 怎样发生adv. 怎么[表示惊讶,愤怒]2.很高兴见到你Ravi de vous ... 阅读全文
posted @ 2015-11-25 15:11 chencesc 阅读(335) 评论(0) 推荐(0)
摘要:深入理解const char*p,char const*p,char *const p,const char **p,char const**p,char *const*p,char**const p(1)const char*p(2)char const*p(3)char *const p(4)c... 阅读全文
posted @ 2015-11-25 13:09 chencesc 阅读(148) 评论(0) 推荐(0)
摘要:Python 第三方 http 库-Requests 学习安装 Requests1.通过pip安装 $ pip install requests2.或者,下载代码后安装: $ git clone git://github.com/kennethreitz/requests.git ... 阅读全文
posted @ 2015-11-23 20:24 chencesc 阅读(171) 评论(0) 推荐(0)