摘要: 一、安装python3二、使用自己的pythonvim ~/.bashrc: alias mqs='source /leofs/xiej/mqs/.mqsbashrc'[...mqs]$ vi ~/mqs/.mqsbashrc alias python='python3安装路径/bin/pyth... 阅读全文
posted @ 2015-09-25 17:13 tina_ma 阅读(869) 评论(0) 推荐(0) 编辑
摘要: Ctrl + R 加上一层注释(行首添加"%空格")Ctrl + T 去掉一层注释(行首去掉"%空格",如果有的话)cd directory 转到一个目录下plot()zeros(M,N) 表示的是M行*N列的0矩阵ones()——生成全1阵MATLAB array indices start fr... 阅读全文
posted @ 2015-07-21 16:46 tina_ma 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Cell Mode的最大好处就是可以不通过函数而直接在一个大的.m文件中实现分段运行调试的功能。"%% [程序块名]"表示一段程序的开始,matlab称程序段为cell。(注意,填上程序块名时,两个百分号后面的空格不可缺少)光标在一个cell上时,这个cell的背景就会变成浅黄色。快速定位:程序块名... 阅读全文
posted @ 2015-07-20 11:14 tina_ma 阅读(485) 评论(0) 推荐(0) 编辑
摘要: hash 的 key只能是字符串,如果不是会被自动转换。%hash = ('b' = >1, 'a' =>2); #小括号!*对文件:DR-Orp(*).xml.gz 解压缩:gunzipDR-Orp\(*\).xml.gz; #加\ 读: open(fin, 'DR-Orp(*).x... 阅读全文
posted @ 2015-05-09 16:29 tina_ma 阅读(169) 评论(0) 推荐(0) 编辑
摘要: gunzip -r ./ 解压缩当前文件夹下所有.gz文件(包括子文件夹下的) 阅读全文
posted @ 2015-04-27 19:00 tina_ma 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 执行一次exportLD_LIBRARY_PATH=adirectory 阅读全文
posted @ 2015-04-03 16:50 tina_ma 阅读(374) 评论(0) 推荐(0) 编辑
摘要: http://perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations问题:自己写的或者下载安装的module没有放在standard location ,如a module calledMy::Mo... 阅读全文
posted @ 2015-03-04 10:23 tina_ma 阅读(377) 评论(0) 推荐(0) 编辑
摘要: http://perlmaven.com/cant-locate-in-incOne of the frequent compile time errors people get from Perl looks like this:Can't locate Acme/NameX.pm in @INC... 阅读全文
posted @ 2015-03-04 09:50 tina_ma 阅读(905) 评论(0) 推荐(0) 编辑
摘要: c++写一个类后编译发现class重定义这种问题经常都是头文件互相包含导致的在h文件开头加上#pragma once这样这个头文件只编译一次避免了这个问题 阅读全文
posted @ 2015-01-27 16:15 tina_ma 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 三个代码等价。with还可以很好的处理上下文环境产生的异常。123file = open("/tmp/foo.txt")data = file.read()file.close()12345file = open("/tmp/foo.txt")try:data = file.read()finall... 阅读全文
posted @ 2014-11-06 10:02 tina_ma 阅读(194) 评论(0) 推荐(0) 编辑