经常喝苏打水有什么好处和坏处| 儿童支气管炎吃什么药| 举重的器材叫什么| 牙龈肿痛吃什么药效果好| 北京西单附近有什么好玩的| 肺主皮毛是什么意思| 孕妇梦见掉牙齿是什么意思| 框框是什么意思| 心梗挂什么科| 男生生日礼物送什么| more是什么意思| 肝火胃火旺盛吃什么药| 正品行货是什么意思| 什么食物去湿气效果好| 吴亦凡帅到什么程度| 梦见移坟墓是什么预兆| 白带是什么东西| 明朝前面是什么朝代| 精神焦虑症有什么表现有哪些| 肛门周围潮湿瘙痒是什么原因| 什么时候喝牛奶效果最佳| 梦见吃肉是什么意思| 今天是什么日子啊| 舌头疼挂什么科| 牙疼有什么好办法| 小脑萎缩吃什么药效果最好| 葡萄和什么不能一起吃| 有志什么成| 尿无力是什么原因| 低压高吃什么药好| 玄五行属什么| 愚人节是什么时候| 入职体检前要注意什么| 苍蝇吃什么食物| 雪里红是什么| 刘备是一个什么样的人| 脑梗吃什么中药| 10月24号是什么星座| 晚上起夜尿多吃什么药| 尿不尽挂什么科| 乙肝小三阳是什么| 阴囊潮湿吃什么中成药| 包饺子用什么肉| 血气分析是检查什么的| 初吻是什么意思| 两个人背靠背是什么牌子| 百合花代表什么意思| 中国为什么叫中国| 二十二岁属什么| 皮肤瘙痒是什么原因| 玉五行属性是什么| 告人诈骗需要什么证据| 蛞蝓是什么动物| 蔓越莓是什么水果| 虎的贵人是什么生肖| 心灵鸡汤是什么意思| 为什么手术服是绿色的| 教唆是什么意思| 上元节是什么节日| 吃鱼油有什么好处| 黄金属于五行属什么| 女人吃什么最好| 层出不穷什么意思| 液体敷料有什么作用| 梦见前男友结婚了是什么征兆| 送老人什么礼物最好| 检查身体挂什么科| 身份证数字分别代表什么| 腰扭伤用什么药最好| 廿二是什么意思| 19时是什么时辰| 出水痘不能吃什么食物| pck是什么意思| 肾火吃什么药| 荔枝不能和什么一起吃| 冷感冒吃什么药好得快| 什么山不能爬脑筋急转弯| mg什么意思| 月经老是推后是什么原因| itp是什么病| aj是什么鞋子| 5.16号是什么星座| 笑气是什么东西| pinsp呼吸机代表什么| 氨基酸态氮是什么| 七月份生日是什么星座| naomi什么意思| 怡的意思和含义是什么| 才高八斗是什么动物| 红萝卜什么时候种| cg什么意思| 割包皮有什么好处| 兽中之王是什么动物| 天秤座和什么星座最配| 第一次同房要注意什么| 饭后烧心是什么原因引起的| 恋童癖是什么意思| 什么是童子命| 牙齿深覆合是什么意思| 血府逐瘀丸治什么病| 八面玲珑代表什么生肖| 腋下异味挂什么科| 玻璃结节是什么意思| 白粉是什么| absorb什么意思| 夏天的诗句有什么| 为什么减肥不掉秤| 负压是什么意思| 藕带是什么| 女人什么时候绝经正常| 吃生姜对身体有什么好处和坏处| 梦见杀鸡见血什么征兆| 什么是微循环| 黑管是什么乐器| 什么情况下挂疼痛科| TB是什么缩写| 猪吃什么食物| 守夜是什么意思| 肝实质回声细密是什么意思| 一月五日是什么星座| 长水痘可以吃什么菜| 什么的游泳| 备孕怀男孩做什么准备| 钙片什么时候吃| 天生一对成伴侣是什么生肖| 抑郁吃什么药| 9.7是什么星座| 春晓描写的是什么季节| 橘子什么时候成熟| 黄金螺吃什么| yair是什么牌子的空调| 手指缝里长水泡还痒是什么原因| 流清鼻涕打喷嚏吃什么药| 改良剂是什么| dpd是什么意思| 三点水加个真念什么| 尿酸高会引起什么病| 什么是丹凤眼| 下嘴唇溃疡是什么原因| 妈妈的妹妹应该叫什么| 什么牌子好| 胆结石什么原因引起的| 六合什么意思| hbcag是什么意思| 小叶增生是什么症状| 口头禅是什么意思| 欧诗漫是个什么档次| 宫殿是什么意思| 双绉是什么面料| 为什么说黑鱼是鬼| 敏感肌肤用什么护肤品| 什么是双飞| 沙门氏菌是什么| 红薯是什么茎| 狗又吐又拉稀吃什么药| 脑子瓦特了什么意思| hpv是检查什么的| 什么地端详| 老鼠怕什么| kms是什么意思| 做颈动脉彩超挂什么科| 蛋白粉什么时候喝效果最好| 薤白的俗名叫什么| 袁字五行属什么| 什么鸡| 失眠吃什么药| 只羡鸳鸯不羡仙是什么意思| 震卦代表什么| 恐惧症吃什么药最好| 老年人便秘吃什么药| 射精出血是什么原因| 大姑姐是什么意思| 什么样的人不适合吃人参| bp是什么意思医学上面| 什么皮肤病会传染| 业报是什么意思| 送长辈什么礼物好| 分数值是什么意思| 对联又称什么| 减肥平台期什么意思| 荷叶和山楂一起泡水有什么功效| 什么药可以延长性功能| 指甲油用什么能洗掉| 什么的角| babycare是什么牌子| 浅表性胃炎吃什么中成药最好| 青蒿素是什么| 生石灰是什么| 消停是什么意思| 斯德哥尔摩是什么意思| 敛肺是什么意思| 后背疼是什么原因引起的女性| 应收账款在贷方表示什么| 肾疼挂什么科| 藿香正气水什么人不能喝| 龙的九个儿子都叫什么名字| 双脚浮肿是什么原因| 乙肝五项45阳性是什么意思| 举案齐眉是什么意思| 喝水多尿多是什么原因男性| 胃胀反酸吃什么药效果好| 大三阳吃什么药好| 妈宝男什么意思| 神农架为什么是禁区| 科目三为什么这么难| 牛油果树长什么样| as是什么元素| 马超是什么生肖| 细菌性阴道炎有什么症状| 阴部痒痒的是什么原因| 脑袋疼是什么原因| 移植后需要注意什么| cno什么意思| 强迫思维是什么| 脾气虚吃什么中成药| 三个土是什么字怎么读| 皮肤糖化是什么意思| 星是什么意思| adp是什么意思| 笔画最多的字是什么字| 海鲜中毒有什么反应| 为什么会晒黑| 皮蛋和什么不能一起吃| 肝肾不足是什么意思| 新生儿头发稀少是什么原因| 对付是什么意思| 白露是什么季节的节气| prp是什么| 二氧化碳分压高说明什么| 肚子疼吃什么药| 女生为什么会来月经| 西南属什么五行| 唯美什么意思| 1940年属什么生肖| mlf操作是什么意思| 卉是什么意思| 身上经常痒是什么原因| 什么都不做| 燕窝是什么东西做成的| 丹参滴丸和丹参片有什么区别| 纯是什么意思| 窦性心动过速是什么意思| 胆红素升高是什么原因| 导演是干什么的| 梦见自己的车丢了是什么意思| rhd血型阳性是什么意思| 女人手心痒是什么征兆| macd是什么| 南瓜和什么食物相克| 阿司匹林是什么| 大便出血什么原因| 关节炎挂什么科| 保泰松是什么药| 什么药可以通血管| p是什么意思啊| 攸字五行属什么| 五劳七伤什么生肖| 鼻子干燥吃什么中成药| 耐药性是什么意思| 痛风脚痛吃什么药| 肝腹水是什么病| 七月份可以种什么菜| 甲状腺结节看什么科| 慢性活动性胃炎是什么意思| 百度

Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.

Foreword for "Programming Python" (1st ed.)

Foreword for "Programming Python" (1st ed.)


This is the foreword I wrote for Mark Lutz' book "Programming Python" (1st ed.), published by O'Reilly. See also my foreword to the 2nd edition.
百度 2月13日,记者从民进山西省委会获悉,为深入学习贯彻中共十九大精神,落实民进十二大提出的工作部署,发挥山西民进文化界别优势,履行服务社会职责,支持和引导基层文化建设,从1月18日开始,全省各级民进组织广泛开展了“春联万家”活动。

As Python's creator, I'd like to say a few words about its origins, adding a bit of personal philosophy.

Over six years ago, in December 1989, I was looking for a "hobby" programming project that would keep me occupied during the week around Christmas. My office (a government-run research lab in Amsterdam) would be closed, but I had a home computer, and not much else on my hands. I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus).

Today, I can safely say that Python has changed my life. I have moved to a different continent. I spend my working days developing large systems in Python, when I'm not hacking on Python or answering Python-related email. There are Python T-shirts, workshops, mailing lists, a newsgroup, and now a book. Frankly, my only unfulfilled wish is to have my picture on the front page of the New York Times. But before I get carried away daydreaming, here are a few tidbits from Python's past.

It all started with ABC, a wonderful teaching language that I had helped create in the early eighties. It was an incredibly elegant and powerful language, aimed at non-professional programmers. Despite all its elegance and power and the availability of a free implementation, ABC never became popular in the Unix/C world. I can only speculate about the reasons, but here's a likely one: the difficulty of adding new "primitive" operations to ABC. It was a monolithic, "closed system", with only the most basic I/O operations: read a string from the console, write a string to the console. I decided not repeat this mistake in Python.

Besides this intention, I had a number of other ideas for improvement over ABC, and was eager to try them out. For instance, ABC's powerful data types turned out to be less efficient than we hoped. There was too much emphasis on theoretically optimal algorithms, and not enough tuning for common cases. I also felt that some of ABC's features, aimed at novice programmers, were less desirable for the (then!) intended audience of experienced Unix/C programmers. For instance: ABC's ideosyncratic syntax (all uppercase keywords!); some terminology (e.g. "how-to" instead of "procedure"); and the integrated structured editor, which its users almost universally hated. Python would rely more on the Unix infrastructure and conventions, without being Unix-bound. And in fact, the first implementation was done on a Mac.

As it turned out, Python is remarkably free from many of the hang-ups of conventional programming languages. This is perhaps due to my choice of examples: besides ABC, my main influence was Modula-3. This is another language with remarkable elegance and power, designed by a small, strong-willed team (most of whom I had met during a summer internship at DEC's Systems Research Center in Palo Alto). Imagine what Python would have looked like if I had modelled it after the Unix shell and C instead! (Yes, I borrowed from C too, but only its least controversial features, in my desire to please the Unix/C audience.)

Any individual creation has its ideosyncracies, and occasionally its creator has to justify these. Perhaps Python's most controversial feature is its use of indentation for statement grouping, which derives directly from ABC. It is one of the language's features that is dearest to my heart. It makes Python code more readable in two ways. First, the use of indentation reduces visual clutter and makes programs shorter, thus reducing the attention span needed to take in a basic unit of code. Second, it allows the programmer less freedom in formatting, thereby enabling a more uniform style, which makes it easier to read someone else's code. (Compare, for instance, the three or four different conventions for the placement of braces in C, each with strong proponents.)

This emphasis on readability is no accident. As an object-oriented language, Python aims to encourage the creation of reusable code. Even if we all wrote perfect documentation all of the time, code can hardly be considered reusable if it's not readable. Many of Python's features, in addition to its use of indentation, conspire to make Python code highly readable. This reflects the philosophy of ABC, which was intended to teach programming in its purest form, and therefore placed a high value on clarity.

Readability is often enhanced by reducing unnecessary variability. When possible, there's a single, obvious way to code a particular construct. This reduces the number of choices facing the programmer who is writing the code, and increases the chance that will appear familiar to a second programmer reading it. Yet another contribution to Python's readability is the choice to use punctuation mostly in a conservative, conventional manner. Most operator symbols are familiar to anyone with even a vague recollection of high school math, and no new meanings have to be learned for comic strip curse characters like @&$!.

I will gladly admit that Python is not the fastest running scripting language. It is a good runner-up though. With ever-increasing hardware speed, the accumulated running time of a program during its lifetime is often negligible compared to the programmer time needed to write and debug it. This, of course, is where the real savings can be made. While this is hard to assess objectively, Python is considered a winner in coding time by most who have tried it. In addition, many consider using Python a pleasure -- a better recommendation is hard to imagine.

I am solely responsible for Python's strengths and shortcomings, even when some of the code has been written by others. However, its success is the product of a community, starting with the early adopters who picked it up when I first published Python on the net, and who spread the word about it in their own environment. They sent me their praise, criticism, feature requests, code contributions, and personal revelations via email. They were willing to discuss every aspect of Python in the mailing list that I soon set up, and educate me or nudge me in the right direction where my initial intuition failed me. There have been too many contributors to thank individually. I'll make one exception, however: this book's author was one of Python's early adopters and evangelists. With its publication, his longstanding wish (and mine!) of having a more accessible description of Python than the standard set of manuals, is fulfilled.

But enough rambling. I highly recommend this book to anyone interested in learning Python, whether for personal improvement or as a career enhancement. Take it away, Eric, the orchestra leader! (If you don't understand this last sentence, you haven't watched enough Monty Python reruns.)

Guido van Rossum
Reston, VA, May 1996

9号来的月经什么时候是排卵期 陈皮泡酒喝有什么功效和作用 形婚是什么意思啊 心电图t波改变什么意思 使用年限是什么意思
痔疮是什么原因 生物素是什么 捡和拣有什么区别 蜻蜓是什么目 今天的日子适合做什么
发烧反反复复是什么原因 水绿色是什么颜色 手足口病什么症状 秀禾服是什么意思 断念是什么意思
糖类抗原什么意思 四个火读什么字 火鸡是什么鸡 dyf是什么意思 阳痿吃什么
知了吃了有什么好处hcv9jop2ns1r.cn 葡萄籽有什么功效和作用hcv9jop5ns6r.cn 肚子疼吃什么hcv8jop9ns7r.cn 甜菜根在中国叫什么hcv7jop9ns9r.cn 死猪不怕开水烫是什么意思hcv8jop5ns7r.cn
海笋是什么东西hcv9jop6ns0r.cn 什么时间进伏hcv8jop3ns8r.cn 胰腺是什么器官hcv8jop3ns2r.cn 2月26日什么星座hcv8jop0ns1r.cn 精神小伙是什么意思yanzhenzixun.com
世界上什么东西最大hcv9jop6ns0r.cn 放屁是热的是什么原因hcv9jop2ns6r.cn 什么时候泡脚效果最好hcv7jop4ns6r.cn choker什么意思hcv8jop4ns8r.cn 白化病是什么能活多久hcv8jop3ns1r.cn
九朵玫瑰花代表什么意思hcv7jop5ns5r.cn 硬气是什么意思hlguo.com 7.22是什么星座hcv8jop8ns8r.cn 煮玉米加什么才会香甜hebeidezhi.com 丝瓜长什么样hcv8jop3ns9r.cn
百度