<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NS基地 &#187; C|Python|Shell</title>
	<atom:link href="http://www.nsbase.org/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nsbase.org</link>
	<description>自信人生二百年，会当水击三千里。</description>
	<lastBuildDate>Wed, 18 May 2011 03:36:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>为非程序员准备的简洁Python语言教材</title>
		<link>http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html</link>
		<comments>http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html#comments</comments>
		<pubDate>Thu, 24 Jun 2010 05:18:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C|Python|Shell]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[教材]]></category>
		<category><![CDATA[程序员]]></category>
		<category><![CDATA[语言]]></category>

		<guid isPermaLink="false">http://www.nsbase.org/2010/06/%e4%b8%ba%e9%9d%9e%e7%a8%8b%e5%ba%8f%e5%91%98%e5%87%86%e5%a4%87%e7%9a%84%e7%ae%80%e6%b4%81python%e8%af%ad%e8%a8%80%e6%95%99%e6%9d%90.html</guid>
		<description><![CDATA[为非程序员准备的简洁Python语言教材，欢迎提问。 Python 的中文意思是巨蟒，大蟒蛇。 计算机编程主要概念¶ 计算机语言编程的主要内容就这些：数字，文字，循环，公式，变量 数 字: 1, 2, 3, 5... ]]></description>
			<content:encoded><![CDATA[<p>为非程序员准备的简洁Python语言教材，欢迎提问。<br />
Python 的中文意思是巨蟒，大蟒蛇。</p>
<p><strong><a name="计算机编程主要概念">计算机编程主要概念</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BC%96%E7%A8%8B%E4%B8%BB%E8%A6%81%E6%A6%82%E5%BF%B5">¶</a></strong></p>
<p>计算机语言编程的主要内容就这些：数字，文字，循环，公式，变量</p>
<ul>
<li>数 字: 1, 2, 3, 5.6, 120, 32.4, 3.1415926, -3, -0.123</li>
</ul>
<ul>
<li>文字: 你好，我好，你太牛了，很黄很暴力，这类的文字。一般用双引号(“)或者单引号(&#8216;)括起来。术语叫<strong>字符串</strong> ，就是一堆字符，串起来。</li>
</ul>
<ul>
<li>循环: 循环(loop)就是重复的做一件事。计算机是一个很笨的机器，基本上只会做加，减，乘，除，大于，小于，等于和循环这种简单的工作。编程就是把复杂的问 题，拆成简单的单元让它重复。</li>
</ul>
<blockquote><p>幸亏有下面讲到的公式，所以很多较复杂的问题已经有了解决方法，我们只是重 复的套用别人的解决公式就可以了，不用拆得太细。</p></blockquote>
<blockquote><p>Python 语言最大的优势，就是这个语言中包含了大量解决常见问题的公式，你想干的事，基本上都有人帮你干了，你只是需要把他们组织，捆绑起来就可以了。比如下载文 件的公式，分析网页内容的公式，压缩文件的公式，处理电子邮件的公式等等。</p></blockquote>
<ul>
<li>公式: 就像数学公式 (a+b)<sup>2</sup>= a<sup>2</sup> + 2ab + b<sup>2</sup> 这种。算的时候带入具体数值，比如：(3+4)<sup>2</sup> = 3<sup>2</sup> + 2*3*4 + 4<sup>2</sup> = 9+24+16 = 49 。前面的 (a+b)<sup>2</sup> 就是我们的公式名（当然编程时，我们会用一些比较容易明白的词组做为公式名，比如“和的平方”这种，英语或者拼音都可以），他需要两个参数a，b；后面的 a<sup>2</sup> + 2ab + b<sup>2</sup> 是具体怎么算出来的步骤，这就是我们的公式内容。</li>
</ul>
<blockquote><p>在 计算机里，公式的术语叫“<strong>函数</strong>”或者“方法”。我们定义一个函数，就是定义一条公式，用的时候，拿来参数a,b什么 的，套一下公式就行了。</p></blockquote>
<blockquote><p>为了程序的结构清晰，我们往往会定义很多函数。把复杂的问题分成很多小问题，每个小问题放到一个函数 里，然后在解决复杂问题的函数里，使用这些小问题函数解决大问题。更重要的是我们可以大量的使用别人写好的函数来解决自己的问题。</p></blockquote>
<p> </p>
<blockquote><p>函数的作用是让程序结构清晰，而且可以在不同的地方重复套用。</p></blockquote>
<ul>
<li>变量: 就是上面的a，b这种可以代表任何值，可以放进不定值的单词。我们用变量来存储我们程序中用到的各种数字，文字，公式。所谓参数，就是定义公式时候用到的 变量，就叫参数，换个马甲而已。</li>
</ul>
<p>换成术语，我们有：</p>
<table>
<tbody>
<tr>
<td>数字 (number)</td>
<td>=&gt;</td>
<td>数字</td>
</tr>
<tr>
<td>字符串 (string)</td>
<td>=&gt;</td>
<td>文字</td>
</tr>
<tr>
<td>循环 (loop)</td>
<td>=&gt;</td>
<td>循环</td>
</tr>
<tr>
<td>函数／方法 (function/method)</td>
<td>=&gt;</td>
<td>公式</td>
</tr>
<tr>
<td>变量 (variable)</td>
<td>=&gt;</td>
<td>变量</td>
</tr>
</tbody>
</table>
<p>到这里，基本上编程就没什么可学得了。剩下的就是掌握各种编程语言特定的函数和循环的书写格式，再掌握了别人已 经写好的函数的用法，组合起来就得了。</p>
<p><strong><a name="基本编程">基本编程</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%9F%BA%E6%9C%AC%E7%BC%96%E7%A8%8B">¶</a></strong></p>
<p>最基本的python程序：</p>
<pre>print ("世界，你好！")</pre>
<p>存 到文件 hello.py 里，然后命令行下输入 <tt>python hello.py</tt> 就可以看到结果了。</p>
<p>这里就用到了 函数和字符串，在屏幕上输出一行：<em>世界，你好！</em></p>
<p>Python 里函数的用法是：函数名(参数1, 参数2)</p>
<p>这 里 print 是函数；在屏幕上打印内容，”世界，你好！”是参数。</p>
<p>学会怎么用函数了，再学会定义函数的格式，就差不多了。</p>
<p><strong><a name="定义函数">定义函数</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%AE%9A%E4%B9%89%E5%87%BD%E6%95%B0">¶</a></strong></p>
<pre>def a_b_pingfang(a, b):
    c = a**2 + 2*a*b + b**2
    return c</pre>
<p>我 们定义一个(a+b)<sup>2</sup>的函数，def 是英语 define 的缩写，意思是定义函数，定义公式。</p>
<p>第 1 行就是说我们要定义一个函数名叫 a_b_pingfang 的函数，用它的时候，需要两个参 数a 和 b。尾巴上有个冒号，冒号的意思是说：“下面的一段就是公式定义了，要注意了”。</p>
<blockquote><p>计算机编程里，<tt>*</tt> 代表乘法，<tt>/</tt>代表除法，<tt>**</tt> 代表乘方， <tt>b**2</tt> 就是 b 的二次方。</p></blockquote>
<p>注意： <strong>Python 是用 <em>缩进空格</em> 来表示段落的，冒号(:)来表示段落开始。</strong></p>
<p>第 2 行先缩进4个空格，说明下面缩进4格的，都是同一段落。用来具体计算上面的定义的公式的。把 a2+2*a*b+b2 的计算结果，放到c里。</p>
<p>c类似于a，b，都是表示一个变量，它可以用来存放数字，文字，甚至函数。这里它存放的是用a，b计算后得到的 结果。因为不是在函数名里，所以术语叫做“变量”，在函数名里，就叫参数了。</p>
<p>“变量”就是用一个单词来代表一个可以变化的量的。单词里可 以有字母，数字和下加线(<tt>_</tt>)，数字不能打头。</p>
<p>第 3 行，把存在c里的结果，传回给函数的使用者。</p>
<p>return 命令的意思，就是立即结束函数的执行，把return后面的值传给调用者，可以传回多个值。</p>
<p>现在可以使用这个公式了，我们叫<strong>调 用函数</strong> ：</p>
<pre>ping2 = a_b_pingfang(2, 3)</pre>
<p>ping2 里存放了 a_b_pingfang(2, 3)得到的结果，也就是上面 <tt>return c</tt> 这句，把 c 的内容，传给了外面的ping2。</p>
<p>把结果打印出来：</p>
<pre>print(ping2)</pre>
<p>全 部程序是：</p>
<pre>def a_b_pingfang(a, b):
    c = a**2 + 2*a*b + b**2
    return c
ping2 = a_b_pingfang(2, 3)
print(ping2)</pre>
<p>存 到 test2.py ，跑 python test2.py 就可以看到输出 25。</p>
<p><strong><a name="循环_(loop)">循环 (loop)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%BE%AA%E7%8E%AF_%28loop%29">¶</a></strong></p>
<p>当然还有循环，怎么让程序重复的做事？我们有 while(当&#8230;), for(对于&#8230;) 命令来进行循环控制。</p>
<pre>a = 0
while a &lt; 100:
   a = a + 1</pre>
<p>这 个循环说，当 a &lt; 100 的时候，把 a 增加 1，然后重复。当 a 等于100了，就结束了。</p>
<p>我们有 &lt;, &gt;, ==, &lt;=, &gt;=, != 来判断大于，小于，等于，小于等于，大于等于，不等于。</p>
<p>还有 <tt>and</tt>, <tt>or</tt>, <tt>not</tt> 来进行逻辑运算，所谓逻辑运算，就是测试已有判断之间的关系的：</p>
<blockquote><p><tt>a == 1 and b != 2</tt> 来测试这两个判断是否同时成立。 <tt>a == 1 or b != 2</tt> 来测试这两个判断里是否有至少一个成立。 <tt>not a == 1</tt> 来测试这个判断是否是错的。错的就是对的，对的就是错的，颠倒黑白。</p></blockquote>
<p>我们还有 break(中断) 来打断循环，和 continue(继续) 来立刻回到循环开始，也可以用 if(是否) 命令来进行判断：</p>
<pre>a = 0
while True:
    a = a + 1
    if a &gt;= 100:
        break</pre>
<p>这 里 True 表示总是正确，相对的是 False 表示错误。这一段是说一直执行，因为 while 总是正确。下面在 if 处判断a是否大于等于100，如果是，那么执行 if 下的段落，这里我们打断了循环。</p>
<p>for 循环是利用下面介绍的的列表数据结构对列表进行循环。</p>
<p><strong><a name="Python_数据概念">Python 数据概念</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#Python_%E6%95%B0%E6%8D%AE%E6%A6%82%E5%BF%B5">¶</a></strong></p>
<p>下面具体到python特殊的规定，它有几个特殊的存储数据的格式。</p>
<ul>
<li>列 表: list</li>
<li>元组: tuple</li>
<li>字典: dict (dictionary)</li>
</ul>
<p><strong><a name="列表_(list)">列表 (list)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%88%97%E8%A1%A8_%28list%29">¶</a></strong></p>
<p>列表：把很多变量存进一个列表里，叫列的意思，就因为他像列车一样，一节一 节车厢，每厢放一个变量。格式为 b, c, 1, 3, 5, &#8216;葡萄&#8217;, &#8216;葡萄皮儿&#8217;，可以看到，方括号里，可以放具体的数字，文字，也可以放变量，用逗号分隔。</p>
<p>这些内容是在固定位置上，可以通过他们的位置， 来提取：</p>
<pre>alist = [1, 3, 5, '很傻', '葡萄', '葡萄皮儿', a, var1]
print (alist[0]) # 打印 "1"</pre>
<blockquote><p>在 python里，数数是从0开始数的，开始是0，然后是1，2，3，4，5，所以上面的列表 alist的第一个内容，可以用<tt>alist[0]</tt>来 提取，第二个用<tt>alist[2]</tt>来提取。</p></blockquote>
<p><tt>print (alist[4]) # 打印 '葡萄' </tt></p>
<p>这里，我们可以介绍用 for 循环来访问这个列表里的所有内容：</p>
<pre>for me in alist:
    print (me)</pre>
<p>上 面这一段，打印所有alist里的内容。</p>
<p>这个循环是，对于列表 alist ，从 0 开始，访问它的每一个位置，把这个位置上的值， 放到me里，然后针对不同的me值，重复执行下面段落的内容。</p>
<blockquote><p><tt>in</tt> 表示me在alist里，也可以用来判断：</p>
<pre>  if "葡萄" in alist:
     print "葡萄在alist里！"</pre>
</blockquote>
<p>这 个列表的内容是可以改变的，我们可以把第4个位置设为”很天真”:</p>
<pre>alist[3] = alist[3] + ' 很天真'
print (alist[3]) # 打印 '很傻 很天真'</pre>
<p><strong><a name="元组_(tuple)">元组 (tuple)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%85%83%E7%BB%84_%28tuple%29">¶</a></strong></p>
<p>元组：元组就是列表，但是他的内容是不能改变的。 他的内容只能一开始就设定。但是，元组和列表之间是可以用函数互相转变的，转成列表就可以改变内容，转回元组就不能改了。</p>
<p>元组是用圆括号 来表示，所以叫元组嘛。</p>
<pre>atuple = (2, 3, "老子")
alist = list(atuple) # 变成 [2, 3, "老子"]
alist[0] = 0
tuple2 = tuple(alist) # 变回 (0, 3, "老子")</pre>
<p>在 python 里，字符串也是一种特殊的元组，也就是内容不可变的字符列表。</p>
<pre>txt = 'abcdefg'
print(txt[1]) # 'b'</pre>
<p><strong><a name="字典_(dict)">字典 (dict)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%AD%97%E5%85%B8_%28dict%29">¶</a></strong></p>
<p>字典：字典就像一般的字典，一个字，一个解释，再一个字，再一个解释。用大 括号表示：</p>
<pre>adict = {1: "我是解释",
  2: "我是解释2",
  "我是3": 3,
  "我是4": 4}</pre>
<p>前 面的字叫钥匙(key)或者索引，后面的解释，叫”值”。索引不能重复，必须是唯一的。</p>
<p>我们可以看到，前面的字，和后面的解释可以是数 字，文字，还可以是函数或者元组。但是前面的字，不能是列表，因为列表内容是可变的，可变的东西都不能做索引。</p>
<p>我们用索引来提取值，而不 是用位置：</p>
<pre>adict[1] # "我是解释"
adict["我是3"] # 3</pre>
<p><strong><a name="模块_(module)">模块 (module)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E6%A8%A1%E5%9D%97_%28module%29">¶</a></strong></p>
<p>Python 里包涵了很多别人写好的函数、方法让我们直接利用。譬如写网络程序的函数，数 学计算的函数，分析电邮文件的函数，加密的函数。</p>
<p>这些函数 分门别类的放到叫“模块”的东西里。一个模块里，包括很多功能相类的函数。而具体实现上，一个模块，就是一个python的程序文件。</p>
<p>如 果模块还还需要细分更多层，那么每层就是一个文件目录。里面有很多做为模块的python文件。</p>
<p>要使用模块，我们用“进口”这个命令: import</p>
<pre>import time
now = time.clock()
print (now)</pre>
<p>这 里，我们先进口 time 模块，然后使用 time 模块里的函数 clock() ，得到当前时间，打印出来。</p>
<p>用个句点表示模块 time里的clock函数: 模块名.函数名</p>
<p>在 python 里，我们会用到很多别人写的模块，能自己少写点儿源码，尽量少写，懒不是？</p>
<p><strong><a name="类_(class)">类 (class)</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E7%B1%BB_%28class%29">¶</a></strong></p>
<p>其实编程来说，类并不是必须的，但是因为很多python提供的模块，里面 的函数都是包在类里面的，所以我们需要介绍一下类。</p>
<p>面向对象编程，是现在比较流行的编程模式，是个人都得用“面像对象”的思路来编程。基 本上就是把同类的函数，打包放到一个叫“类”的东西里。</p>
<p>这个“类”一般上是以具体的东西为模子，譬如物种：人类，猫类；物品：家俱类，电 器类。他里面打包的函数，基本上是针对这个类进行操作的，譬如人说话，人吃饭，猫逮耗子，家居磨损。</p>
<p>使用类的时候，我们先具体化他，把类 变成个体。人类变成某人，猫类变成某猫，家俱变 成某家俱语法上比较怪，只好变成一件家俱。这个具体化的类，就是所谓的“对象(object) ”。然后我们就可以使用这个具体人，猫，家居的函数，针对具体的人，物进行操作了。</p>
<h4><a name="定义类">定义类</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%AE%9A%E4%B9%89%E7%B1%BB">¶</a></h4>
<pre>class RenLei:
    def __init__(self, mingzi):  # self 是一个固定参数，代表这个对象自己。
        self.mingzi = mingzi     # 把名字存到对象自己的 mingzi 变量上。
    def shui2(self):
        return self.mingzi</pre>
<p>在 类的定义里，每一个函数，他的第一个参数，都是规定死的，必须是self。self代表这个对象自己。这个对像本身的变量，函数，都是通过这个自己来存取 的。</p>
<blockquote><p>你可以管他叫wo3, you, me，用什么名字随便，但是第一位置的，就是代表对象自己。</p>
<pre>    def __init__(wo3, mingzi):
       wo3.mingzi = mingzi</pre>
<p>也 可以。</p></blockquote>
<p>在调用类里的函数时，不用提供 self 这个参数，程序自动加入 self。我们只要提供其他参数即可。</p>
<p><tt>__init__()</tt> 这个函数是特殊函数，他代表建立函数的时候，需要的使用的参数。通过类建立函数的时候，程序会自动调用 <tt>__init__()</tt>函数。</p>
<h4><a name="具体化类，建立对象">具体化类，建立对象</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%85%B7%E4%BD%93%E5%8C%96%E7%B1%BB%EF%BC%8C%E5%BB%BA%E7%AB%8B%E5%AF%B9%E8%B1%A1">¶</a></h4>
<pre># 建立对象，提供的函数对应__init__() 函数，self 参数程序自动提供，不用我们提供。
xiaozhang1 = RenLei("小张")  
mingzi = xiaozhang1.shui2()  # 使用“对象名.函数名()”的格式来调用类里的函数。
print mingzi &lt;-- "小张"</pre>
<p><strong><a name="字符串的对象性质">字符串的对象性质</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%AD%97%E7%AC%A6%E4%B8%B2%E7%9A%84%E5%AF%B9%E8%B1%A1%E6%80%A7%E8%B4%A8">¶</a></strong></p>
<p>Python 里的字符串，列表，元组，字典，都是面对对象的类，所以他们本身带有很多函数可以对自己进行操作，譬如：</p>
<pre>a = "握手 不一定 就是 友谊".split()</pre>
<p>split 是字符串的函数，他可以把字符串在给定位置分段，当我们不给他参数的时候，会在所有空白位置分割，然后返回一个列表，里面是被割裂的字符串。</p>
<p>结 果，a 的内容是 <tt>["握手", "不一定", "就是", "友谊"]</tt>，这是一个有4个元素的列表。</p>
<p>对于字符串，列 表，字典之类的操作，请熟读说明手册他们的说明，python编程，主要就靠字符串，列表和字典了。</p>
<p><strong><a name="Python_程序书编程习惯">Python 程序书编程习惯</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#Python_%E7%A8%8B%E5%BA%8F%E4%B9%A6%E7%BC%96%E7%A8%8B%E4%B9%A0%E6%83%AF">¶</a></strong></p>
<p>写一个 Python 程序，我们一般步骤是：</p>
<ol>
<li>进 口所有会用到到模块 import</li>
<li>定义我们自己的类和函数。每个函数里要用到的函数，被调用的函数一般放在调用函数的前面定义。这样 我们读程序的时候，就知道调用的函数，在前面是怎么定义的，有什么功能，需要什么参数，返回什么值。</li>
<li>在文件的最下面，调用上面定义的 函数和类，开始工作。</li>
<li>尽量使用python提供的内建函数和模块里的函数，所以我们对Python的模块说明手册要很熟悉。</li>
</ol>
<p>Python 运行，是从文件的上面往下走的，看到命令执行命令，一直到最后一行。当我们定义函数和类的时候，他们只是定义，而没有执行，所以Python 看到他们，先存起来，直到看到定义外的具体命令，才真正的执行。如果这个命令调用上面的函数，那么就把存起来的函数执行一下。</p>
<p>Python 里注释符号是”#”。就是说，在 # 符号后的那一行文字，都当做解释，不做为程序的命令。</p>
<pre>print ("打酱油！") # print ("关我屁事")</pre>
<p>只 打印出 “打酱油”，剩下的，因为是在 # 后面，所以程序把他们当做注释语言自动忽略了。</p>
<p>完整例子： 把一个两列的文件input.txt，分割成两个文件col1.txt, col2.txt，一个文件一列。 input.txt 内容:</p>
<pre>a1 啊阿
ai1 挨埃哀
ao2 熬鳌翱獒</pre>
<p>程 序内容：</p>
<pre>def split_file(filename): # 把文件分成两列
    col1 = [] # 存储第一列
    col2 = []
    fd = open(filename) # open 函数用来打开文件，返回一个文件对象
    text = fd.read() # fd.read 读入文件fd 的内容。
    lines = text.splitlines() # 把读入的内容分行
    for line in lines: # 循环每一行
        part = line.split(None, 1) # 分割一行。
        col1.append(part[0]) # 把分割的第一部分放到col1后面。
        col2.append(part[1])

    return col1, col2 # 返回 col1, col2

def write_list(filename, alist): # 把文字列表内容写入文件
    fd = open(filename, 'w') # 打开输出文件col1.txt，'w'指定使用写入模式。
    for line in alist:
         fd.write(line + '\n')

def main(): # 主函数，程序进入点，习惯性叫他 main()
    filename = 'input.txt'            # 把输入文件名 input.txt 放进一个变量
    col1, col2 = split_file(filename) # 调用分割函数，结果存入 col1, col2
    write_list('col1.txt', col1)      # 调用写入函数
    write_list('col2.txt', col2)

main() # 唯一的函数外命令，程序开始执行，调用上面的 main() 函数数。</pre>
<p>这 里，输入的文件名是写死的 input.txt ，我们可以使用模块 optparse 来通过命令行读取用户提供的文件，会更灵活些。</p>
<p><strong><a name="参考资料">参考资料</a><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99">¶</a></strong></p>
<p>更多的功能，函数，请参考python的<a rel="nofollow" href="http://www.chinesepython.org/pythonfoundry/harrypydoc/html/tut.html">官方教学</a>和手册。</p>
<p>先熟悉:</p>
<ul>
<li>内建函数</li>
<li>内建数据类 型 (字符串，数字，列表，字典，文件对象)</li>
<li>sys 模块</li>
<li>re 模块</li>
<li>os 模块</li>
<li>optparse 模块</li>
</ul>
<p>熟悉这些，基本上编程没问题了。</p>
<p><a rel="nofollow" href="http://www.woodpecker.org.cn/diveintopython/toc/index.html">深入 Python</a>是一本经典的参考书，虽然没有涵盖所有python模块的内容，但是对初学者基本够用。而且它 是一个自由文件，说俗了就是合法免费的，又有中文翻译版，难得。</p>
<p>也可以参考 <a rel="nofollow" href="http://www.sogou.com/web?query=Python+%BE%F8%B6%D4%BC%F2%C3%F7%CA%D6%B2%E1">Python 绝对简明手册</a>这个中文说明。</p>
<p>如果需要网络编程，还要熟悉网络相关的模块。如果想 要图形界面，建议使用pygtk或者pyqt图形界面函数库，这时候，也需要熟悉面对对象编程的概念。</p>
<p>对于英文不好的人，建议买一本有<a rel="nofollow" href="http://www.sogou.com/web?query=Python+%B1%E0%B3%CC&amp;startIndex=0">Python函数模块介绍的中文书</a>，作为参考书，在编程的时候，边编边翻书。</p>
<p>Python 的中文意思是巨蟒，大蟒蛇。但是这个语言的具体出处是一个叫Monty Python的英 国电视剧。</p>
<p><strong>查看:</strong><a href="http://code.google.com/p/hashao/wiki/ChinesePythonTutor" target="_blank">快速 Python 语言入门教学，课程，课件，教材，自学，概念</a></p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.nsbase.org/2009/06/wordpress-plug-in-multiple-languages-yd-setup-locale.html" title="wordpress多国语言插件 &#8211; YD Setup Locale">wordpress多国语言插件 &#8211; YD Setup Locale</a></li><li><a href="http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html" title="研究人员发明能自动将软件翻译成不同语言的工具">研究人员发明能自动将软件翻译成不同语言的工具</a></li></ul><hr />
<p><small>© 研发基地 for <a href="http://www.nsbase.org">NS基地</a>, 2010<br />
Source: <a href="http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html">为非程序员准备的简洁Python语言教材</a><br />
<a href="http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html#comments">3 comments</a><br />
Post tags: <a href="http://www.nsbase.org/tag/python" rel="tag">Python</a>, <a href="http://www.nsbase.org/tag/%e6%95%99%e6%9d%90" rel="tag">教材</a>, <a href="http://www.nsbase.org/tag/%e7%a8%8b%e5%ba%8f%e5%91%98" rel="tag">程序员</a>, <a href="http://www.nsbase.org/tag/%e8%af%ad%e8%a8%80" rel="tag">语言</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MFC常用类对应的头文件</title>
		<link>http://www.nsbase.org/2009/06/mfc-common-type-of-the-corresponding-header-files.html</link>
		<comments>http://www.nsbase.org/2009/06/mfc-common-type-of-the-corresponding-header-files.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 06:56:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C|Python|Shell]]></category>
		<category><![CDATA[MFC]]></category>
		<category><![CDATA[头文件]]></category>

		<guid isPermaLink="false">http://www.nsbase.org/2009/06/mfc%e5%b8%b8%e7%94%a8%e7%b1%bb%e5%af%b9%e5%ba%94%e7%9a%84%e5%a4%b4%e6%96%87%e4%bb%b6.html</guid>
		<description><![CDATA[CAnimateCtrl    afxcmn.h    CArchive    afx.h    CArchiveException    afx.h    CArray    afxtempl.h    CAsyncMonikerFile    afxole.h    CAsyncSocket    afxsock.h    CBitmap    afxwin.h    CBitmapButton    afxe... ]]></description>
			<content:encoded><![CDATA[<p>CAnimateCtrl    afxcmn.h   <br />
CArchive    afx.h   <br />
CArchiveException    afx.h   <br />
CArray    afxtempl.h   <br />
CAsyncMonikerFile    afxole.h   <br />
CAsyncSocket    afxsock.h   <br />
CBitmap    afxwin.h   <br />
CBitmapButton    afxext.h   <br />
CBrush    afxwin.h   <br />
CButton    afxwin.h   <br />
CByteArray    afxcoll.h   <br />
CCachedDataPathProperty    afxctl.h   <br />
CCheckListBox    afxwin.h   <br />
CClientDC    afxwin.h   <br />
CCmdTarget    afxwin.h   <br />
CCmdUI    afxwin.h   <br />
CColorDialog    afxdlgs.h   <br />
CComboBox    afxwin.h   <br />
CComboBoxEx    afxcmn.h   <br />
CCommandLineInfo    afxwin.h   <br />
CCommonDialog    afxdlgs.h   <br />
CConnectionPoint    afxdisp.h   <br />
CControlBar    afxext.h   <br />
CCriticalSection    afxmt.h   <br />
CCtrlView    afxwin.h   <br />
CDaoDatabase    afxdao.h   <br />
CDaoException    afxdao.h   <br />
CDaoFieldExchange    afxdao.h   <br />
CDaoQueryDef    afxdao.h   <br />
CDaoRecordset    afxdao.h   <br />
CDaoRecordView    afxdao.h   <br />
CDaoTableDef    afxdao.h   <br />
CDaoWorkspace    afxdao.h   <br />
CDatabase    afxdb.h   <br />
CDataExchange    afxwin.h   <br />
CDataPathProperty    afxctl.h   <br />
CDateTimeCtrl    afxdtctl.h   <br />
CDBException    afxdb.h   <br />
CDBVariant    afxdb.h   <br />
CDC    afxwin.h   <br />
CDHtmlDialog    afxdhtml.h   <br />
CDialog    afxwin.h   <br />
CDialogBar    afxext.h   <br />
CDocItem    afxole.h   <br />
CDockState    afxadv.h   <br />
CDocObjectServer    afxdocob.h   <br />
CDocObjectServerItem    afxdocob.h   <br />
CDocTemplate    afxwin.h   <br />
CDocument    afxwin.h   <br />
CDragListBox    afxcmn.h   <br />
CDumpContext    afx.h   <br />
CDWordArray    afxcoll.h   <br />
CEdit    afxwin.h   <br />
CEditView    afxext.h   <br />
CEvent    afxmt.h   <br />
CException    afx.h   <br />
CFieldExchange    afxdb.h   <br />
CFile    afx.h   <br />
CFileDialog    afxdlgs.h   <br />
CFileException    afx.h   <br />
CFileFind    afx.h   <br />
CFindReplaceDialog    afxdlgs.h   <br />
CFont    afxwin.h   <br />
CFontDialog    afxdlgs.h   <br />
CFontHolder    afxctl.h   <br />
CFormView    afxext.h   <br />
CFrameWnd    afxwin.h   <br />
CFtpConnection    afxinet.h   <br />
CFtpFileFind    afxinet.h   <br />
CGdiObject    afxwin.h   <br />
CGopherConnection    afxinet.h   <br />
CGopherFile    afxinet.h   <br />
CGopherFileFind    afxinet.h   <br />
CGopherLocator    afxinet.h   <br />
CHeaderCtrl    afxcmn.h   <br />
CHotKeyCtrl    afxcmn.h   <br />
CHtmlEditCtrl    afxhtml.h   <br />
CHtmlEditCtrlBase    afxhtml.h   <br />
CHtmlEditDoc    afxhtml.h   <br />
CHtmlEditView    afxhtml.h   <br />
CHtmlStream    afxisapi.h   <br />
CHtmlView    afxhtml.h   <br />
CHttpArgList    afxisapi.h   <br />
CHttpConnection    afxinet.h   <br />
CHttpFile    afxinet.h   <br />
CHttpFilter    afxisapi.h   <br />
CHttpFilterContext    afxisapi.h   <br />
CHttpServer    afxisapi.h   <br />
CHttpServerContext    afxisapi.h   <br />
CImageList    afxcmn.h   <br />
CInternetConnection    afxinet.h   <br />
CInternetException    afxinet.h   <br />
CInternetFile    afxinet.h   <br />
CInternetSession    afxinet.h   <br />
CIPAddressCtrl    afxcmn.h   <br />
CLinkCtrl    afxcmn.h   <br />
CList    afxtempl.h   <br />
CListBox    afxwin.h   <br />
CListCtrl    afxcmn.h   <br />
CListView    afxcview.h   <br />
CLongBinary    afxdb_.h   <br />
CMap    afxtempl.h   <br />
CMapPtrToPtr    afxcoll.h   <br />
CMapPtrToWord    afxcoll.h   <br />
CMapStringToOb    afxcoll.h   <br />
CMapStringToPtr    afxcoll.h   <br />
CMapStringToString    afxcoll.h   <br />
CMapWordToOb    afxcoll.h   <br />
CMapWordToPtr    afxcoll.h   <br />
CMDIChildWnd    afxwin.h   <br />
CMDIFrameWnd    afxwin.h   <br />
CMemFile    afx.h   <br />
CMemoryException    afx.h   <br />
CMenu    afxwin.h   <br />
CMetaFileDC    afxext.h   <br />
CMiniFrameWnd    afxwin.h   <br />
CMonikerFile    afxole.h   <br />
CMonthCalCtrl    afxdtctl.h   <br />
CMultiDocTemplate    afxwin.h   <br />
CMultiLock    afxmt.h   <br />
CMultiPageDHtmlDialog    afxdhtml.h   <br />
CMutex    afxmt.h   <br />
CNotSupportedException    afx.h   <br />
CObArray    afxcoll.h   <br />
CObject    afx.h   <br />
CObList    afxcoll.h   <br />
COccManager    afxocc.h   <br />
COleBusyDialog    afxodlgs.h   <br />
COleChangeIconDialog    afxodlgs.h   <br />
COleChangeSourceDialog    afxodlgs.h   <br />
COleClientItem    afxole.h   <br />
COleCmdUI    afxdocob.h   <br />
COleControl    afxctl.h   <br />
COleControlContainer    afxocc.h   <br />
COleControlModule    afxctl.h   <br />
COleControlSite    afxocc.h   <br />
COleConvertDialog    afxodlgs.h   <br />
COleCurrency    afxdisp.h   <br />
COleDataObject    afxole.h   <br />
COleDataSource    afxole.h   <br />
COleDBRecordView    afxoledb.h   <br />
COleDialog    afxodlgs.h   <br />
COleDispatchDriver    afxdisp.h   <br />
COleDispatchException    afxdisp.h   <br />
COleDocObjectItem    afxole.h   <br />
COleDocument    afxole.h   <br />
COleDropSource    afxole.h   <br />
COleDropTarget    afxole.h   <br />
COleException    afxdisp.h   <br />
COleInsertDialog    afxodlgs.h   <br />
COleIPFrameWnd    afxole.h   <br />
COleLinkingDoc    afxole.h   <br />
COleLinksDialog    afxodlgs.h   <br />
COleMessageFilter    afxole.h   <br />
COleObjectFactory    afxdisp.h   <br />
COlePasteSpecialDialog    afxodlgs.h   <br />
COlePropertiesDialog    afxodlgs.h   <br />
COlePropertyPage    afxctl.h   <br />
COleResizeBar    afxole.h   <br />
COleSafeArray    afxdisp.h   <br />
COleServerDoc    afxole.h   <br />
COleServerItem    afxole.h   <br />
COleStreamFile    afxole.h   <br />
COleTemplateServer    afxdisp.h   <br />
COleUpdateDialog    afxodlgs.h   <br />
COleVariant    afxdisp.h   <br />
CPageSetupDialog    afxdlgs.h   <br />
CPaintDC    afxwin.h   <br />
CPalette    afxwin.h   <br />
CPen    afxwin.h   <br />
CPictureHolder    afxctl.h   <br />
CPoint    atltypes.h   <br />
CPrintDialog    afxdlgs.h   <br />
CPrintDialogEx    afxdlgs.h   <br />
CProgressCtrl    afxcmn.h   <br />
CPropertyPage    afxdlgs.h   <br />
CPropertySheet    afxdlgs.h   <br />
CPropExchange    afxctl.h   <br />
CPtrArray    afxcoll.h   <br />
CPtrList    afxcoll.h   <br />
CReBar    afxext.h   <br />
CReBarCtrl    afxcmn.h   <br />
CRecentFileList    afxadv.h   <br />
CRecordset    afxdb.h   <br />
CRecordView    afxdb.h   <br />
CRect    atltypes.h   <br />
CRectTracker    afxext.h   <br />
CResourceException    afxwin.h   <br />
CRgn    afxwin.h   <br />
CRichEditCntrItem    afxrich.h   <br />
CRichEditCtrl    afxcmn.h   <br />
CRichEditDoc    afxrich.h   <br />
CRichEditView    afxrich.h   <br />
CScrollBar    afxwin.h   <br />
CScrollView    afxwin.h   <br />
CSemaphore    afxmt.h   <br />
CSharedFile    afxadv.h   <br />
CSingleDocTemplate    afxwin.h   <br />
CSingleLock    afxmt.h   <br />
CSize    atltypes.h   <br />
CSliderCtrl    afxcmn.h   <br />
CSocket    afxsock.h   <br />
CSocketFile    afxsock.h   <br />
CSpinButtonCtrl    afxcmn.h   <br />
CSplitterWnd    afxext.h   <br />
CStatic    afxwin.h   <br />
CStatusBar    afxext.h   <br />
CStatusBarCtrl    afxcmn.h   <br />
CStdioFile    afx.h   <br />
CStringArray    afxcoll.h   <br />
CStringList    afxcoll.h   <br />
CSyncObject    afxmt.h   <br />
CTabCtrl    afxcmn.h   <br />
CToolBar    afxext.h   <br />
CToolBarCtrl    afxcmn.h   <br />
CToolTipCtrl    afxcmn.h   <br />
CTreeCtrl    afxcmn.h   <br />
CTreeView    afxcview.h   <br />
CTypedPtrArray    afxtempl.h   <br />
CTypedPtrList    afxtempl.h   <br />
CTypedPtrMap    afxtempl.h   <br />
CUIntArray    afxcoll.h   <br />
CUserException    afxwin.h   <br />
CView    afxwin.h   <br />
CWaitCursor    afxwin.h   <br />
CWinApp    afxwin.h   <br />
CWindowDC    afxwin.h   <br />
CWinThread    afxwin.h   <br />
CWnd    afxwin.h   <br />
CWordArray    afxcoll.h</p>
<p> 以上内容收集与网络</p>
<h2  class="related_post_title">随即日志</h2><ul class="related_post"><li><a href="http://www.nsbase.org/2010/05/wordpress-3-0-beta-2-released.html" title="WordPress 3.0 beta 2 发布">WordPress 3.0 beta 2 发布</a></li><li><a href="http://www.nsbase.org/2010/07/ubuntu-tweak-updated-to-0-5-5.html" title="Ubuntu Tweak更新至0.5.5">Ubuntu Tweak更新至0.5.5</a></li><li><a href="http://www.nsbase.org/2010/05/linux-kernel-2-6-34-released.html" title="Linux Kernel 2.6.34 发布">Linux Kernel 2.6.34 发布</a></li><li><a href="http://www.nsbase.org/2008/12/windows-7-build-6956-yuan-vhd-wenjianzhongzi-zhuanyuanjing.html" title="Windows 7 Build 6956 源VHD文件种子(转远景)">Windows 7 Build 6956 源VHD文件种子(转远景)</a></li><li><a href="http://www.nsbase.org/2009/03/jindian-sms-jokes-collection.html" title="金典短消息笑话(合集)">金典短消息笑话(合集)</a></li><li><a href="http://www.nsbase.org/2009/03/eset-nod32-eav-4-ess-4-english-the-official-version-released-report-official-original-sinicized-patch-download.html" title="ESET NOD32 EAV 4 / ESS 4英文正式版发布（附：官方原版 + 汉化补丁下载）">ESET NOD32 EAV 4 / ESS 4英文正式版发布（附：官方原版 + 汉化补丁下载）</a></li><li><a href="http://www.nsbase.org/2010/09/godaddy-build-data-centers-in-singapore-into-a-spokesman-for-hong-kong-actress.html" title="Godaddy建新加坡数据中心 香港女星成代言人">Godaddy建新加坡数据中心 香港女星成代言人</a></li><li><a href="http://www.nsbase.org/2009/03/cyber-qq15-release-support-the-official-version-of-2009-increase-effects-turn-off-chat-box.html" title="赛博QQ1.5版发布! 支持2009正式版! 增加聊天框关闭特效!">赛博QQ1.5版发布! 支持2009正式版! 增加聊天框关闭特效!</a></li><li><a href="http://www.nsbase.org/2009/02/taiwanu002639s-best-advertisement-union-a-small-blog-of-the-gospel.html" title="台湾优秀广告联盟-小博客的福音">台湾优秀广告联盟-小博客的福音</a></li><li><a href="http://www.nsbase.org/2009/08/recently-i-am-sorry-that-their.html" title="最近很对不起自己">最近很对不起自己</a></li></ul><hr />
<p><small>© 研发基地 for <a href="http://www.nsbase.org">NS基地</a>, 2009<br />
Source: <a href="http://www.nsbase.org/2009/06/mfc-common-type-of-the-corresponding-header-files.html">MFC常用类对应的头文件</a><br />
<a href="http://www.nsbase.org/2009/06/mfc-common-type-of-the-corresponding-header-files.html#comments">10 comments</a><br />
Post tags: <a href="http://www.nsbase.org/tag/mfc" rel="tag">MFC</a>, <a href="http://www.nsbase.org/tag/%e5%a4%b4%e6%96%87%e4%bb%b6" rel="tag">头文件</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsbase.org/2009/06/mfc-common-type-of-the-corresponding-header-files.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>征途同步最新完美服务端+所有工具手动架设</title>
		<link>http://www.nsbase.org/2009/04/the-journey-of-the-latest-perfect-synchronization-server-all-the-tools-to-set-up-manually.html</link>
		<comments>http://www.nsbase.org/2009/04/the-journey-of-the-latest-perfect-synchronization-server-all-the-tools-to-set-up-manually.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 03:08:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C|Python|Shell]]></category>
		<category><![CDATA[征途同步最新完美服务端+所有工具手动架设]]></category>

		<guid isPermaLink="false">http://www.nsbase.org/2009/04/%e5%be%81%e9%80%94%e5%90%8c%e6%ad%a5%e6%9c%80%e6%96%b0%e5%ae%8c%e7%be%8e%e6%9c%8d%e5%8a%a1%e7%ab%af%e6%89%80%e6%9c%89%e5%b7%a5%e5%85%b7%e6%89%8b%e5%8a%a8%e6%9e%b6%e8%ae%be.html</guid>
		<description><![CDATA[前几年俺很疯狂的喜欢上征途天天都在网吧和朋友一起干征途,没日没夜的玩,现在想一想真的很傻,浪费拉时间不说,还花拉很多钱,耽误拉学习,俺现在不玩征途拉,昨天突然有朋友说想要玩征途,要... ]]></description>
			<content:encoded><![CDATA[<p>前几年俺很疯狂的喜欢上征途天天都在网吧和朋友一起干征途,没日没夜的玩,现在想一想真的很傻,浪费拉时间不说,还花拉很多钱,耽误拉学习,俺现在不玩征途拉,昨天突然有朋友说想要玩征途,要玩爽的,不花钱,俺就想起来前几年架设过征途服务端,那LINUX环境,现在估计WINDOWS环境已经成熟拉,所以发来一个教程,希望喜欢征途的玩家可以看一看,别在为 “屎玉柱”迷惑拉,改干点正事了,好拉废话少说,服务端还是猎人的,</p>
<p>本服务端包括:</p>
<blockquote><p><strong>开放七大职业封神英雄技能!<br />
开放刺客卫士,超眩超酷新技能! <span style="font-size: 0px;">游戏下载,游戏论坛,单机游戏,攻略秘籍,网游单机,游戏资讯3 O) ]) Y) V8  r/ O2 V# \1 W</span><br />
随身商店,随身仓库等功能让你惊喜重重!<br />
随身车夫(任何时间任何地点实现车夫处传送功能) <span style="font-size: 0px;">1 p4 v+ [, w2 d! S  b9 i#  `</span><br />
随身杂货(随身的高级 低级杂货,不用找NPC一样可以购买) <span style="font-size: 0px;">提供最新最全的单机游戏,网络游戏单机版下载,众多好玩的线上游戏,以及游戏心得交流0 S”  R! T&#8217; X3 k: ?7 ~! N</span><br />
超级传送(可直接传送到所有国家大臣处,天姑和挂机地图)<br />
特别技能(长达3600秒的特别技能,加10%魔攻,加10%物攻,加10%生命,加10%魔法)会员魔法 <span style="font-size: 0px;">游戏下载,游戏论坛,单机游戏,攻略秘籍,网游单机,游戏资讯/ E* H9 f, T5  V) N2  |</span><br />
增加了一张会员BOSS新地图叫BOSS集中营里面拥有官方所有的BOSS包括你见都没见过的BOSS里面的BOSS必爆补天和超级魂魄必须要用会员凭证进入。。。。会员凭证请找各大游戏的GM购买。。。。。  <span style="font-size: 0px;">| 单机游戏下载/ i&amp; Y&amp; W/ p&amp;  C</span><br />
支持装备升18星 <span style="font-size: 0px;">游戏藏宝湾/ g# i  A3  @; j4 m</span><br />
可以用积分升级武器到12星在高级钱庄老板处。<br />
可以开3种箱子，是水晶箱子，精金宝盒，密银宝盒3种箱子。水晶之门必须在高级钱庄老板处开启需要花费3个积分。。。。。。。。<br />
开发出最新会员证， 集随身车夫，随身杂货，随身改造，随身仓库，超级传送，特别技能<br />
天马、老虎、帝王御马、绝域神豹、傲视炎豹，多彩多样的坐骑，想骑哪个就哪个！ <span style="font-size: 0px;">提供最新最全的单机游戏,网络游戏单机版下载,众多好玩的线上游戏,以及游戏心得交流, S;  t, H: p; f” `&amp; L2 x# [&#8216;  _</span><br />
新增45个188级紫BOSS和45个180级紫BOSS,BOSS血量都不高,只要你的装备不是任务装,你都可以轻松的打死<br />
可以占领NPC领取家族BUFF！！<br />
增加会员证里面有会员传送</strong></p></blockquote>
<p>还有很多功能没写,自己去体会吧,绝对比官方爽,支持和征途官方同步更新,</p>
<p>还有几个地图进不去，自己小心些，如果是GM号可以下命令从回出生地~~~~不是的话就要修改服务器了，要不就卡住了！！！但现在这个端应该是最新最全的了！！！</p>
<p>有这样好的服务端应该感谢猎人</p>
<p>说一下具体超作 ,其实很简单拉,</p>
<blockquote><p>1 征途客户端   去征途官方去下载  客户端下载地址：<a href="http://zt.ztgame.com/download/client.shtml" target="_blank">http://zt.ztgame.com/download/client.shtml</a>更到最新</p>
<p>2 服务端 下载  http://www.damipan.com/file/aznkRZ.html 俺已经传到盘子里拉.这个服务端 包括很多工具 GM工具 征途道具修改工具 超级物品制造机 Gm工具 SQLyogEnt(汉化版有注册码的) 数据库Zebra 登陆器和补丁 myodbc 连接 部分GM常用的命令集合 征途怪物数据读取工具 征途私服架设技术汇总 转生经验解决方法 最后还有一个大大的服务端 绝对比官方爽</p></blockquote>
<p>把上面2个需要的组建都下载回来 征途客户端更新到最新,你是网通 就选网通更新,要是电信就选电信着个是废话,下面说一下具体安装:</p>
<blockquote><p>1.安装 -mysql-essential-5.0.27-win32.msi 这个 大家估计都熟悉拉,MY数据库,你去官方下载也行,服务端俺已经加进去拉,俺这个 WP BLOG 的数据库就是MY的,安装就不说拉,注意选NTFS格式的磁盘,-NEXT-CUSTOM-选择为NTFS格式的安装盘-NEXT-INSTALL-(SKIP SIGN-UP)-NEXT<br />
-FINISH-NEST-(一路点NEXT）-直到NEXT变灰需要输入密码<br />
-(NEw ROOT PASSWORD=123456,CONFIRM=123456)-在ENABLE&#8230;<br />
打勾-NEXT-EXECUTE-完成！   密码是123456 你选别的也是一样的,俺这里为拉方便就选空密码,到时候在 服务端里自己改</p></blockquote>
<blockquote>
<blockquote><p><span style="display: none;">+ s( P) T5 r) k6 q2 P( \( V.  lwww.iopq.com</span><span style="display: none;">$ y,  d5 c* d1 i5 B9 m) R, y+ D</span><span style="display: none;">2 Z3 m  ?1 q&#8217; @%  R</span><span style="display: none;">7 z8 i(  X: {% K&#8217; u5 @</span><span style="display: none;">4 e0 |( F  d2 z- D4 m$ T! z5  swww.iopq.com</span><span style="display: none;">&amp; F- v  a. K: r+ k&#8217; F2  d游戏下载,游戏论坛,单机游戏,攻略秘籍,网游单机,游戏资讯</span><span style="display: none;">/ `! `2 h1 J8  lwww.iopq.com</span><span style="display: none;">7 F6 Y: P%  Q) l/ Q; y/ r$ X</span>4.打开 SQLyogEnt.exe 输入注册码 Name: BAKA!s/n: 560f17bf57745cf9 因为是汉化的,直接-新建-确定-在口令处填上123456-数据库处填Zebra-连接-完毕！ 口令就是MY建立时候的密码    俺这里是空的,你可以顺便修改,帐好就是ROOT  相当于  XP admin</p>
<p>6.打开WINZT-配套补丁+登陆器-把里面的东西都复制到征途根目录-打开ZebraLogin.exe-帐号注册-完毕！进入游戏！这里俺提供2个帐号 俺自己做的 帐号：lmy1976   密码：3262645   300级男国王  帐号：lmy621166  密码：3262645  200级女法师自己去爽吧.</p></blockquote>
<blockquote>
<blockquote><p>5.打开解压得到得WINZT-SERVER-服务器启动器.EXE-配置文件-数据库配置-连接数据库-返回启动设置<br />
-启动服务即可！ 慎重提示：点击启动服务后需要等15-20分钟，且务着急！  这里俺详细说一下  WINZT-SERVER-服务器启动器.EXE 就是 server 文件夹里的configtool.exe 查看<img class="aligncenter size-medium wp-image-416" title="ztserver" src="http://www.nsbase.org/wp-content/uploads/2009/04/ztserver-300x183.jpg" alt="ztserver" width="300" height="183" /></p></blockquote>
</blockquote>
<blockquote>
<blockquote><p>大家看从 global 到Mini mysql://root:@127.0.0.1:3306/Zebra root:后面就写你MY建立时候的密码,俺这里为拉方便就是空的,你可以写别的,然后保存配置文件,config.xml 数据库 要启动哦,就是MY 最后在数据库配置里有一个连接选项  测试一下,要是正常就OK,然后在启动服务器 直接启动OK,场景服务 很大,加载很慢取决你的机器的配置俺机器配置还可以,的10分钟左右,一般都15到20分钟,请耐心等待.</p></blockquote>
</blockquote>
<blockquote><p>2.安装 SQLyog656EntTrial.exe 这个是为拉修改GM帐好和密码的,其实维护MY也可以用他,不过俺感觉  WEB还是 MYADMIN这个好用,HAHA一路默认即可（也可以选自其他盘）</p></blockquote>
<blockquote><p>3.解压WINZT，把完整数据库里的 Zebra 文件夹复制到 X:\MySQL\MySQL Server 5.0\data\ 目录下   WINZT就是服务端里的server俺自己改的名字,大家在安装期间最好不要安装到有中文名字,不染回出问题,ZEBRA是数据库文件   直接复制到  DATA文件目录下就行,</p></blockquote>
</blockquote>
<blockquote><p>传几张 截图</p></blockquote>
<blockquote><p><a href="http://lh4.ggpht.com/_IHjayJpMKK0/Seae685SFKI/AAAAAAAAAb8/kBh3AqifLes/1.jpg"><img class="alignnone" src="http://lh4.ggpht.com/_IHjayJpMKK0/Seae685SFKI/AAAAAAAAAb8/kBh3AqifLes/1.jpg" alt="" width="640" height="465" /></a></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh3.ggpht.com/_IHjayJpMKK0/SeafCHlANbI/AAAAAAAAAcc/n6hXOCkr6yM/2.jpg" alt="" width="640" height="465" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh6.ggpht.com/_IHjayJpMKK0/SeafFdye8kI/AAAAAAAAAck/L7VSdMAqAr4/3.jpg" alt="" width="700" height="508" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh5.ggpht.com/_IHjayJpMKK0/SeafI-tnjRI/AAAAAAAAAcs/s80K8ukhvkE/4.jpg" alt="" width="640" height="465" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh4.ggpht.com/_IHjayJpMKK0/SeafLq9j69I/AAAAAAAAAc0/PRtriDI9N0M/5.jpg" alt="" width="640" height="465" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh4.ggpht.com/_IHjayJpMKK0/Seafyt9_QfI/AAAAAAAAAc8/__7kcWoeUl4/%E6%9C%AA%E5%91%BD%E5%90%8D.jpg" alt="" width="640" height="377" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh5.ggpht.com/_IHjayJpMKK0/SeafzmEgxcI/AAAAAAAAAdE/TfkfZmr8CbQ/1.jpg" alt="" width="421" height="481" /></p></blockquote>
<blockquote><p><img class="alignnone" src="http://lh6.ggpht.com/_IHjayJpMKK0/Seaf0OxX9TI/AAAAAAAAAdM/l8pvUA9ovPs/s512/%E6%9C%AA%E5%91%BD%E5%90%8D2.jpg" alt="" width="281" height="512" /></p></blockquote>
<blockquote><p>最后 PS: 场景服务启动不了,请重新关闭服务端在开启,多试几次,如果还是不行,请重新启动机器,在打开,场景加载很慢,请耐心等待,单机绝对比官方爽自己去体会吧,GM命令 和传奇,魔兽一些网络游戏都差不多  zt  是//  开头 有一些命令必须带 差数 ,OK  886</p></blockquote>
<h2  class="related_post_title">随即日志</h2><ul class="related_post"><li><a href="http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html" title="为非程序员准备的简洁Python语言教材">为非程序员准备的简洁Python语言教材</a></li><li><a href="http://www.nsbase.org/2009/02/the-latest-softmod-microsoft-will-clean-up-the-broken-version-of-vista.html" title="最新:微软将清理SoftMod的破解版Vista">最新:微软将清理SoftMod的破解版Vista</a></li><li><a href="http://www.nsbase.org/2010/05/wordpress-3-0-beta-2-released.html" title="WordPress 3.0 beta 2 发布">WordPress 3.0 beta 2 发布</a></li><li><a href="http://www.nsbase.org/2010/05/btrfs-new-generation-linux-file-system-to-use.html" title="新一代 Linux 文件系统 btrfs 使用方法 ">新一代 Linux 文件系统 btrfs 使用方法 </a></li><li><a href="http://www.nsbase.org/2010/05/openbsd-4-7-released.html" title="OpenBSD 4.7 发布">OpenBSD 4.7 发布</a></li><li><a href="http://www.nsbase.org/2009/02/can-not-not-be-able-to-resolve-the-problem-of-show-hidden-files-svohostexe-xsxexe.html" title="解决无法无法显示隐藏文件的问题(svohost.exe xsx.exe)">解决无法无法显示隐藏文件的问题(svohost.exe xsx.exe)</a></li><li><a href="http://www.nsbase.org/2010/05/linux-kernel-2-6-34-released.html" title="Linux Kernel 2.6.34 发布">Linux Kernel 2.6.34 发布</a></li><li><a href="http://www.nsbase.org/2009/02/taiwanu002639s-best-advertisement-union-a-small-blog-of-the-gospel.html" title="台湾优秀广告联盟-小博客的福音">台湾优秀广告联盟-小博客的福音</a></li><li><a href="http://www.nsbase.org/2009/11/engage-in-a-new-server.html" title="新搞一台服务器">新搞一台服务器</a></li><li><a href="http://www.nsbase.org/2010/07/wordpress-com-push-new-features-a-phone-call-can-write-a-blog.html" title="Wordpress.com推新功能：打个电话就能写博客">Wordpress.com推新功能：打个电话就能写博客</a></li></ul><hr />
<p><small>© 研发基地 for <a href="http://www.nsbase.org">NS基地</a>, 2009<br />
Source: <a href="http://www.nsbase.org/2009/04/the-journey-of-the-latest-perfect-synchronization-server-all-the-tools-to-set-up-manually.html">征途同步最新完美服务端+所有工具手动架设</a><br />
<a href="http://www.nsbase.org/2009/04/the-journey-of-the-latest-perfect-synchronization-server-all-the-tools-to-set-up-manually.html#comments">One comment</a><br />
Post tags: <a href="http://www.nsbase.org/tag/%e5%be%81%e9%80%94%e5%90%8c%e6%ad%a5%e6%9c%80%e6%96%b0%e5%ae%8c%e7%be%8e%e6%9c%8d%e5%8a%a1%e7%ab%af%e6%89%80%e6%9c%89%e5%b7%a5%e5%85%b7%e6%89%8b%e5%8a%a8%e6%9e%b6%e8%ae%be" rel="tag">征途同步最新完美服务端+所有工具手动架设</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsbase.org/2009/04/the-journey-of-the-latest-perfect-synchronization-server-all-the-tools-to-set-up-manually.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>研究人员发明能自动将软件翻译成不同语言的工具</title>
		<link>http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html</link>
		<comments>http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html#comments</comments>
		<pubDate>Thu, 26 Feb 2009 02:48:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[C|Python|Shell]]></category>
		<category><![CDATA[翻译]]></category>
		<category><![CDATA[语言]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.nsbase.org/2009/02/%e7%a0%94%e7%a9%b6%e4%ba%ba%e5%91%98%e5%8f%91%e6%98%8e%e8%83%bd%e8%87%aa%e5%8a%a8%e5%b0%86%e8%bd%af%e4%bb%b6%e7%bf%bb%e8%af%91%e6%88%90%e4%b8%8d%e5%90%8c%e8%af%ad%e8%a8%80%e7%9a%84%e5%b7%a5%e5%85%b7.html</guid>
		<description><![CDATA[北卡州立大学的的研究人员(主要为华裔)开发出一套软件工具,能更快和更简单的将视频游戏和软件翻译到不同语言,从而解决软件的国际化障碍. 如果你想在国际市场销售或推销软件,你就必须将... ]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">北卡州立大学的的研究人员(主要为华裔)开发出一套软件工具,能更快和更简单的将视频游戏和软件翻译到不同语言,从而解决软件的国际化障碍.</span><br />
如果你想在国际市场销售或推销软件,你就必须将其翻译成新的语言.这意味着程序员不得不插入数千行代码,确保在用户屏幕上显示的字符正常,整个过程相当费时费力,人为错误不可避免.程序员必须小心翼翼的防止替换与程序运行相关的代码.</p>
<p>现在北卡州立和北京大学的研究人员创造了一种新的工具，能识别出在用户屏幕上显示以及与用户交互的代码（比如菜单），避开控制程序功能的代码。一 旦识别，就能将其翻译成相应语言，比如把工具栏上的标签从英语翻译成汉语。软件不会像程序员那样容易犯错，因此能提高生产力和品质。该工具可识别出人类程 序员的错误和疏漏，举例来说，研究人员用软件检查了某一流行在线视频游戏，发现了17处翻译疏忽错误。这些错误随后被修正。</p>
<p>他们的论文发表在3月份的<a href="http://people.engr.ncsu.edu/txie/publications/icse09demo-inter.pdf">《Proceedings of the International Conference on Software Engineering》上，DEMO(PDF)</a>，这个名叫TranStrL的工具是Eclipse的插件..</p>
<p>原文连接:http://www.cnbeta.com/articles/78003.htm</p>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://www.nsbase.org/2010/06/python-for-non-programmers-to-prepare-concise-language-teaching.html" title="为非程序员准备的简洁Python语言教材">为非程序员准备的简洁Python语言教材</a></li><li><a href="http://www.nsbase.org/2009/06/wordpress-plug-in-multiple-languages-yd-setup-locale.html" title="wordpress多国语言插件 &#8211; YD Setup Locale">wordpress多国语言插件 &#8211; YD Setup Locale</a></li><li><a href="http://www.nsbase.org/2009/05/made-excellent-small-software-and-effective-button-wizard-key.html" title="国产优秀小软件-按键精灵和有效注册码">国产优秀小软件-按键精灵和有效注册码</a></li><li><a href="http://www.nsbase.org/2009/03/cyber-qq15-release-support-the-official-version-of-2009-increase-effects-turn-off-chat-box.html" title="赛博QQ1.5版发布! 支持2009正式版! 增加聊天框关闭特效!">赛博QQ1.5版发布! 支持2009正式版! 增加聊天框关闭特效!</a></li><li><a href="http://www.nsbase.org/2009/03/set-image-editing-disc-burning-virtual-drive-in-one-of-the-english-version-poweriso-43-valid-key.html" title="集镜像编辑、光盘刻录、虚拟光驱于一身的PowerISO 4.3中文版+有效注册码">集镜像编辑、光盘刻录、虚拟光驱于一身的PowerISO 4.3中文版+有效注册码</a></li><li><a href="http://www.nsbase.org/2009/03/about-windows-xp-and-vista-systems-update-u0026quotmicrosoft-net-frameworku0026quot-role.html" title="关于Windows XP 和 Vista 系统更新中“Microsoft .NET Framework”的作用">关于Windows XP 和 Vista 系统更新中“Microsoft .NET Framework”的作用</a></li><li><a href="http://www.nsbase.org/2009/03/net-bell-reader-desktop-on-the-best-use-of-web-20-reader.html" title="网铃阅读器-桌面上最好用的Web 2.0阅读器  ">网铃阅读器-桌面上最好用的Web 2.0阅读器  </a></li><li><a href="http://www.nsbase.org/2009/03/%e9%83%81%e9%97%b7%e9%83%81%e9%97%b7more-google.html" title="郁闷更是郁闷-google">郁闷更是郁闷-google</a></li></ul><hr />
<p><small>© 研发基地 for <a href="http://www.nsbase.org">NS基地</a>, 2009<br />
Source: <a href="http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html">研究人员发明能自动将软件翻译成不同语言的工具</a><br />
<a href="http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html#comments">2 comments</a><br />
Post tags: <a href="http://www.nsbase.org/tag/%e7%bf%bb%e8%af%91" rel="tag">翻译</a>, <a href="http://www.nsbase.org/tag/%e8%af%ad%e8%a8%80" rel="tag">语言</a>, <a href="http://www.nsbase.org/tag/%e8%bd%af%e4%bb%b6" rel="tag">软件</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nsbase.org/2009/02/researchers-invention-can-be-automatically-translated-into-different-languages-software-tools.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

