周正

周正的博客

他的个人主页  他的博客

《可爱的Python》读后感

周正  2010年05月07日 星期五 00:32 | 2383次浏览 | 19条评论

终于看完了《可爱的Python》

前些时,向单位的图书阅览室推荐了这本书。不想几日后就买回来了。还给我打了电话,让我第一个阅读之。

现在,终于看完了,IQ也基本降到0了。Python的神奇让我有些傻眼。到最后基本上是在走马观花。

找到一个刊误:2009年9月第1次印刷,第338页,第二段“导入”,第二种方式应该是Import to @root。

跟着小白做了两个练习,发现自己比小白还白。

第二个练习KDAY中Karrigell已经升级了,好像找不到karrigell的ini文件。请高手赐教!

总之,总算看完了,明天,不,今天上午就去还书了。因为我还推荐了其他几本关于Perl的书。

至于这本爱不释手的可爱的《可爱的Python》,还是让它在阅览室中普渡众生吧!

 

评论

我的评论:

发表评论

请 登录 后发表评论。还没有在Zeuux哲思注册吗?现在 注册 !
王升

回复 王升  2011年12月29日 星期四 02:16

周琦

回复 周琦  2011年06月10日 星期五 16:01

感谢!已经记录 bug 将在电子版中修订!

0条回复

周正

回复 周正  2010年05月07日 星期五 23:46

搞清了ini文件的问题:
“Migrating from Karrigell 2.x to 3.0
1 - Configuration
1.1 The configuration files are Python scripts instead of a single .ini file : one for the server, and one for each host. Most configuration options are the same, except that all names have been normalized : lowercase, with underscore between words. For instance, rootDir becomes root_dir - but to reduce incompatibility, "old" names will still be recognized

1.2 The only option that can be configured on the command line is the path of the folder of the server configuration script. All other options like the server port are set in the server or host configuration scripts

1.3 the equivalent of "protected" is not yet implemented “

1条回复

  • 周正

    回复 周正  2010年05月07日 星期五 23:46

    ”5. Configuration
    The configuration is defined on three levels :
    command line : when the built-in server is used, the directory where the server-specific configuration script is located can be specified

    python Karrigell.py [ServerConfigDirectory]
    By default, the directory used is the same as the one where Karrigell.py stands

    server configuration script : defines directories used by the framework, and options relevant at the server level (session storage, maximum number of threads, etc). For the built-in web server, these data are stored in the script server_config.py in the Server Configuration Directory defined above

    host configuration scripts : defined in the script conf.py in each host data directory ; for localhost, it is located in the folder data/www “
    看来版本3的配置变化很大。希望社区的行者们加油

    0条回复

周琦

回复 周琦  2010年05月07日 星期五 18:49

具体的意见,到 http://code.google.com/p/openbookproject/issues/list 进行反馈哈,
以便我们在出新版本时纳入修订...

12条回复

  • 周正

    回复 周正  2010年05月07日 星期五 22:50

    1119 Issue Accepted PubReview LovePy xg.lisa [LovPy:0] 第338页顶部,第二个“Import to @file” 应该是@root。
    已经有人提交过了。

    10条回复

      • 徐继哲

        回复 徐继哲  2010年05月07日 星期五 22:54

        社区的力量好强大。

        9条回复

          • 周正

            回复 周正  2010年05月07日 星期五 22:56

            希望有一天能够实现“社区里一提交,所有的图书同步修改。“

            8条回复

              • 徐继哲

                回复 徐继哲  2010年05月07日 星期五 22:56

                会实现的。

                7条回复

                  • 周琦

                    回复 周琦  2010年05月07日 星期五 22:58

                    电子版本,准备迁移到 Sphinx 图书框架,就可以作到这点了,
                    而且可以开放权限,大家共同来增

                    6条回复

                      • 徐继哲

                        回复 徐继哲  2010年05月07日 星期五 23:00

                        你觉得这是最佳的文档/图书格式么?我最近也要做个选性。ZQ给点专业意见

                        5条回复

                          • 周琦

                            回复 周琦  2010年05月08日 星期六 00:55

                            Sphinx 是基于 rST 结构化文本的多模式输出框架,
                            可以自由输出 html/chm/pdf 等多种格式的图书,
                            和 DocBook 类似,但是基于 Python+rST 非常容易管理和扩展,、
                            从 Django 开始越来越多的社区文档,图书,都选择了 Sphinx 框架:
                            http://sphinx.pocoo.org/

                            0条回复

                          • 周正

                            回复 周正  2010年05月07日 星期五 23:01

                            我觉得PDF不好,设计上的漏洞太多。

                            3条回复

                              • 徐继哲

                                回复 徐继哲  2010年05月07日 星期五 23:08

                                用的就是纯HTML,当文档很大的时候,不可维护了。累!

                                0条回复

                              • 徐继哲

                                回复 徐继哲  2010年05月07日 星期五 23:05

                                对,需要一个:简单的、存文本格式的、表现力较强的、支持多种格式输出的解决方案。我之前用HTML,太痛苦。

                                1条回复

                                  • 周正

                                    周正  2010年05月07日 星期五 23:07

                                    不会是“xml+模板”吧?

                                    0条回复

  • 周正

    回复 周正  2010年05月07日 星期五 22:49

    谢谢!我24小时前看到了!但是忙于还书,没有记下地址。谢谢你,马上提交问题。

    0条回复

曹帅军

回复 曹帅军  2010年05月07日 星期五 18:18

过两天一定去买一本,享受一下。。。

0条回复

徐继哲

回复 徐继哲  2010年05月07日 星期五 09:18

单位的阅览室很好嘛

0条回复

暂时没有评论

Zeuux © 2024

京ICP备05028076号