ZoomQuiet avatar ZoomQuiet committed 85380ee

fixed ch02 代码和运行输出 不吻合的问题

Comments (0)

Files changed (1)

source/ch02/MakeAModule.rst

 
 实例::
   
-  class foo():
-    content='hello,pythonic'
-    def __init__(self):
-      print self.content
-  a=foo()
+    class foo():
+      content='hello,pythonic'
+      def __init__(self):
+        print self.content
+
+      a=foo()
+
+
 输出::
   
-  hello,world
+  hello,pythonic
   
 self能获取类中的属性、方法,所以此参数绝对不是摆设
 
 
 有些问题还是没有解决
  
-  - TextDB使用起来太麻烦,可以再封装一层
-  
-  - 编辑功能还没有实现
-  
-  - 不能使用正则表达式
-  
-  ……
+- TextDB使用起来太麻烦,可以再封装一层
+- 编辑功能还没有实现
+- 不能使用正则表达式
+- ……
   
 看来任务还真多……
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.