<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Mens et Manus]]></title><description><![CDATA[仓禀实而知礼节,衣食足而知荣辱]]></description><link>https://blog.youkuaiyun.com/for_program</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; for_program]]></copyright><item><title><![CDATA[matlab 二维高斯分布]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8906069</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8906069</guid><author>for_program</author><pubDate>Thu, 09 May 2013 15:47:07 +0800</pubDate><description><![CDATA[这里给出话二维高斯分布的matlab作图代码：
>> mu = [-1, 2];
>> sigma = [1 0;0 1];
>> [X, Y] = meshgrid([-20:0.5:20]);
>> p = mvnpdf([X(:),Y(:)],mu,sigma);
>> p = reshape(p,size(X));
>> figure(2)
>> surf(X,Y,p)
>> shadi]]></description><category></category></item><item><title><![CDATA[第十三篇：while]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8887163</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8887163</guid><author>for_program</author><pubDate>Sun, 05 May 2013 17:02:02 +0800</pubDate><description><![CDATA[while的格式如下：
while :
    
else:
    
 
1.使用break
>>> a = 1; b = 3
>>> while a:
	b -= 1
	if b == 0:
		print('b equals to 0')
		break

	
b equals to 0
 
2.使用continue
与break类似。这里不再举例。
 
3.pass]]></description><category></category></item><item><title><![CDATA[第十二篇：if语句]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8887128</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8887128</guid><author>for_program</author><pubDate>Sun, 05 May 2013 16:36:08 +0800</pubDate><description><![CDATA[if的例子在前面已经接触。为了完整性。这里给出了一些例子。
>>> choice = 'bacon'
>>> dic = {'bacon':1, 'new':2}
>>> if choice in dic:
	print(dic[choice])
 
end..
参见其它章节]]></description><category></category></item><item><title><![CDATA[WYSIWIS WYSIWYG ...]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8863777</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8863777</guid><author>for_program</author><pubDate>Sun, 28 Apr 2013 15:35:03 +0800</pubDate><description><![CDATA[最近被一些单词搞得难受，记录在此以后必会用到的了。
 
WYSIWIS:你见即我见。
WYSIWYG:所见即所得。
WYSIWYM:所见即所想。]]></description><category></category></item><item><title><![CDATA[第十一篇：赋值，表达式，print]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8863475</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8863475</guid><author>for_program</author><pubDate>Sun, 28 Apr 2013 15:23:30 +0800</pubDate><description><![CDATA[1.赋值
这边主要介绍python与c语言不同的地方。
pyhon支持tuple方式或list方式赋值。下面是tuple方式赋值的例子。
>>> y, g = 'yes', 'good'
>>> y
'yes'
>>> g
'good'
下面是list赋值的例子。
>>> a = 1
>>> b = 2
>>> [e, f] = [a, b]
>>> e
1
>>> f
2
当然，tu]]></description><category></category></item><item><title><![CDATA[第十篇：python语句]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8863258</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8863258</guid><author>for_program</author><pubDate>Sun, 28 Apr 2013 14:41:20 +0800</pubDate><description><![CDATA[这一篇进行一下概览，了解一下python的语法特性。
 
1.有哪些
赋值，函数调用，打印，if语句，循环语句，pass, break, continue def, return, yield, global, nonlocal(3.0), import, from class try-except-finally, raise, assert, with/as, del
 
2.if与]]></description><category></category></item><item><title><![CDATA[第九篇：其它类型相关知识]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8861920</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8861920</guid><author>for_program</author><pubDate>Sun, 28 Apr 2013 09:42:57 +0800</pubDate><description><![CDATA[这篇对之前没讲到的做个补充。下篇开始将python语法结构
 
1.对象是否动态可变？
下面详细描述了变量类型，以及是否动态可变的。

 
2.多自由？
lists和dictionaries可以：无限地嵌套，容纳任意类型，动态地伸缩。
 
3.true和false的含义

None对象和c语言里的NULL比较相似。
 
4.注意逗号
>>> t = (1, 2, 3)]]></description><category></category></item><item><title><![CDATA[第八篇：Files]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8861726</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8861726</guid><author>for_program</author><pubDate>Sun, 28 Apr 2013 09:20:54 +0800</pubDate><description><![CDATA[File类型是python内置类型。使用内置函数open可以得到一个file object.
 
1.常用的file操作清单：

 
2.open files
打开文件：
打开文件，需要制定操作模式。默认模式是只读的。
模式'r'， 表示打开文件并读里面内容
模式‘w'，表示创建或打开文件，向文件里面写内容。（注意会覆盖原有内容）
模式’a'，表示'a'打开并在文件末尾附加内容]]></description><category></category></item><item><title><![CDATA[金刚经 原文及受持要领]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8858761</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8858761</guid><author>for_program</author><pubDate>Sat, 27 Apr 2013 13:50:44 +0800</pubDate><description><![CDATA[金刚经
香赞
炉香乍爇(ruò) ， 法界蒙熏，诸佛海会悉遥闻，随处结祥云，诚意方殷，诸佛现全身。
南(nā)无(mó)香云盖菩萨摩诃萨（三称）
南(nā)无(mó)本师释迦牟尼佛(三称)

净口业真言
唵修唎修唎摩诃修唎修修唎萨婆诃

净三业真言
唵，嚩（wa)日(zhi)啰(la)怛(da)诃贺斛(hong)。
安土地真言
南无三满哆 母驮喃 唵 度噜度噜 地尾萨婆诃]]></description><category></category></item><item><title><![CDATA[第七篇：tuple(元组)]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8858714</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8858714</guid><author>for_program</author><pubDate>Sat, 27 Apr 2013 13:40:55 +0800</pubDate><description><![CDATA[这一章主要讲解tuple类型。这也是最后一个容器类型。tuple与list非常相似。两者的转换也非常简单。两者最大的区别在于tuple不能改变，而list可以动态改变。
 
1.tuple概览

tuple也支持嵌套表达。它的下标使用与list几乎一样，所以就不多做介绍了。
 
2.tuple实例
排序元素。这里注意sorted函数用法：
>>> t = ('a', 'c', 'b]]></description><category></category></item><item><title><![CDATA[第六篇：dictionary]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8858607</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8858607</guid><author>for_program</author><pubDate>Sat, 27 Apr 2013 13:24:45 +0800</pubDate><description><![CDATA[上一篇讲了list。这一篇接着讲dictionary，包括set。
 
1.dictionay概览：

上表列出了python的大部分操作。dictionary和list一样也可以嵌套使用。
 
2.dictionary例子：
>>> d = {'jiji':1, 'waiwai':2} #创建
>>> d['jiji']
1
>>> d['waiwai'] #取值
2
>>> d]]></description><category></category></item><item><title><![CDATA[第五篇：list]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8858470</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8858470</guid><author>for_program</author><pubDate>Sat, 27 Apr 2013 13:04:02 +0800</pubDate><description><![CDATA[这一篇主要讲list。下一篇讲dictionary。
这两个数据类型在python中被频繁使用。
 
1.list概况
list故名思义，提供一个动态的列表容器，相对于其它语言，python中的list非常强大，它可以容纳不同的数据类型，嵌套list等。
>>> [1, [1, 2], [1, 2, [3, 4]], 'hello', {'这也行?'}]
[1, [1, 2], [1,]]></description><category></category></item><item><title><![CDATA[第四篇：strings]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8857775</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8857775</guid><author>for_program</author><pubDate>Sat, 27 Apr 2013 11:32:27 +0800</pubDate><description><![CDATA[1.一点，两点都一样
前面已经说了。string可以用““ 也可以使用‘ ’。那它为什么要用两种方式表示呢。其实这样会有不少方便之处：
>>> 'I'm'
SyntaxError: invalid syntax
>>> 'I"m'
'I"m'
>>> "I"m"
SyntaxError: invalid syntax
>>> "I'm"
"I'm"
除非你坚持还用下面的方式：
>>> 'I]]></description><category></category></item><item><title><![CDATA[第三篇：动态类型]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8855791</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8855791</guid><author>for_program</author><pubDate>Fri, 26 Apr 2013 18:05:14 +0800</pubDate><description><![CDATA[1.不需要声明---变量与对象的关系
python的动态语言特点决定所有变量都是动态监测的。这是python的动态类型模型。
变量如果没有被赋值，不能直接使用。
>>>a # wrong
>>>a = 4 #right
>>>a
4
那么a = 4 这个语句python做了什么呢？
1.1 创建一个与4关联的object。(python中一切都是object)
1.2 如果a不存在，创]]></description><category></category></item><item><title><![CDATA[第二篇：数值类型]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8854245</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8854245</guid><author>for_program</author><pubDate>Fri, 26 Apr 2013 16:59:50 +0800</pubDate><description><![CDATA[这一篇介绍与Python有关的数值类型和概念，夹杂着一些新的其它方面的概念。
 
1.3/4 == 0？
在python中，每个数都会关联到一个类型上的，3， 4默认为整型。
（python的一个好处是这些类型都不用声明，直接拿来就用。）
这里3/4 == 0 可以类比c中的int类型除法。结果向下取舍，就变成了0.
如果想得到一个满意的结果：
3.0 / 4.0就可以了。pytho]]></description><category></category></item><item><title><![CDATA[第一篇：开始Python]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8853758</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8853758</guid><author>for_program</author><pubDate>Fri, 26 Apr 2013 14:11:43 +0800</pubDate><description><![CDATA[这个专题主要记录《Learning Python 4th》的学习笔记。用于督促自己学完这本书。该书1000多页，可想而知包含的内容还是很多。但作为一门语言，学起来还是很简单的。这里以“条”为单位，简化书中的繁杂的表达，再填上自己的感想。力求全面而又精简地描述python语言的特性。
这些笔记供以后参考。也供朋友们学习。
 
关于本书的评论，请参见（豆瓣）：
http://book.doub]]></description><category></category></item><item><title><![CDATA[如何提高学习效率 如何提高工作效率]]></title><link>https://blog.youkuaiyun.com/for_program/article/details/8853225</link><guid>https://blog.youkuaiyun.com/for_program/article/details/8853225</guid><author>for_program</author><pubDate>Fri, 26 Apr 2013 11:31:59 +0800</pubDate><description><![CDATA[Knuth说过早优化是万恶之源。后来Android Ng 在他的课上也提到了这个概念。但是当时没有仔细咀嚼这句话的含义，现在朝话夕拾，认真品味，倒还是蛮有道理。


当初Knuth提出不要过早优化的想法，估计是实在忍受不庞杂事其繁琐的一面。我们对于过大的计划总是力不从心，不得不在项目分支中徘徊，而跳不到整体的框架上。像这样的问题，无论是在模型设计上，项目的实施中或在现实生活里都大量存在着。]]></description><category></category></item></channel></rss>