Python is a new and innovative scripting language. It is set to replace Perl as the programming language of choice for shell scripters, and for serious application developers who want a feature-rich, yet simple language to deploy their products.
Dive Into Python is a hands-on guide to the Python language. Each chapter starts with a real, complete code sample, proceeds to pick it apart and explain the pieces, and then puts it all back together in a summary at the end.
This is the perfect resource for you if you like to jump into languages fast and get going right away. If youre just starting to learn Python, first pick up a copy of Magnus Lie Hetland's Practical Python.
Mark Pilgrim is an accessibility architect in the IBM Emerging Technologies Group. He is the author of several technical books,
including Dive Into Accessibility, a free online tutorial on web accessibility. He lives in North Carolina with his wife and newborn son, and spends his copious free time sunbathing, skydiving, and
reading Immanuel Kant's Critique of Pure Reason.
Atupleisanimmutablelist.AtublecanNOTbechangedinanywayonceitiscreated.TuplesHaveNoMethods
——引自第1页
>>>importtimeit>>>t=timeit.Timer("soundex.soundex('Pilgrim')",..."importsoundex")>>>t.timeit()8.21683733547>>>t.repeat(3,2000000)[16.48319309109,16.46128984923,16.44203948912] 1.Thetimeitmoduledefinesoneclass,Timer,whichtakestwoarguments.Bothargumentsarestrings.Thefirstargumentisthestatementyouwishtotime;inthiscase,youaretimingacalltotheSoundexfunctionwithinthesoundexwithanargumentof'Pilgrim'.ThesecondargumenttotheTimerclassistheimportstatementthatsetsuptheenvironmentforthestatement.Internally,timeitsetsupanisolatedvirtualenvironment,manuallyexecutesthesetupstatement(importingthesoundexmodule),thenmanuallycompilesandexecutesthetimedstatement(callingtheSoun...
——引自章节:18.2.UsingthetimeitModule
Legend tells of a lost valley high in the Himalayas—a place where fantasy, sensu...
美国医生执照考试(一).行为医学 本书特色 为了满足中国医学生和医生的需求,人民卫生出版社将陆续引进了“美国医生执照考试”的**和第二分部系列考试丛书英文版*新...
Now, for the first time, the exquisite FABLES covers by James Jean, winner of mu...
茶艺服务技巧 本书特色 《茶艺服务技巧》考察了中国茶艺的发展、演变和传统茶艺在当代的传承、复兴,归纳了茶艺的种类,介绍了茶叶的鉴别技巧、茶汤的品尝技巧、茶叶的保...
当你拿起铅笔之后,是否总有一种无从下手的感觉?又是否会经常感觉到画出来的作品总会有些别扭?那么,问题来了,“这到底是怎么回事”?其实很简单造型不准,也就是结构不...
消化系统疾病诊治绝招 本书特色 本书为老中医坐堂丛书之一。该书以消化系统疾病医学病名为纲,以病统方,意在切合临床实际。先介绍该病的基本概念、病因、临床表现、辅助...
作品目录太阳系空间探测的早期杰出成就“科学先生”卡尔萨根(代序)译者序漂泊者(作者序)第1章 你在这里第2章 光行差第3章 大
Thefieldofastrophysicsisinthemidstofatechnologicallydrivenrenaissance,asfundamen...
Intendedforscholarsinthefieldsofphilosophy,historyofscienceandmusic,thisbookexam...
傅雷(1908—1966)著名翻译家、作家、美术评论家。曾留学法国。20 世纪 30 年代起开始从事文学翻译工作。亦出版有《世界美术名作二十讲》等美术评论专著,...
ForhalfacenturythehousewivesofPont-lEvequehadenviedMadameAubainherservantFelicit...
池永阳,爱知县丰桥市生人。做过美术印刷设计师、广告稿撰写人。98年凭借《奔跑的老头》荣获第11届“小说群星”新人奖并由此出道。2006年凭《斩云》获第12届中山...
極權和專制統治下的假面社會裡,民間笑話經常是聰明人和明白人經過自我審查的意見表達——旁敲側擊、婉轉迂迴、閃爍其詞、欲言又止、顧左右而言他。玩笑起源於人們有想法,...
第一片雪花从灰蓝色的天空中飘落,邮递员穿上雨靴,农夫去仓库取雪铲,警察扣好了大衣,他的妻子检查药橱柜里的咳嗽药水,而孩子们则欢呼雀跃、手舞足蹈,用舌尖去捕捉飘落...
作品目录前言 温和而物质的杭州精品路线 一 杭州美女秀衣/购物路线 关键词:有多少美女就有多少美衣 二 杭州美居路线 关键词:构
词从小道、艳科,难登大雅之堂,到上升为“一代之文学”,中间经历了怎样的历史变迁?是哪些人使宋词完成了蜕变?是哪些事在宋词中留下深刻印痕?而宋词又是怎样与一个王朝...
西蒙·兰卡斯特(Simon Lancaster)世界知名演讲撰稿人之一。为很多政治家(包括英国前首相托尼·布莱尔的内阁)及联合利华、汇丰银行、力拓集团等世界50...
精彩摘录他知道,現在只要抬頭,多半就能看到那顆星。即使身處燈紅酒綠的城市,仰望夜空,它的光芒依然燦爛奪目。二十五年前在今
吃脂肪,让你更瘦、更健康。风靡世界的全新健康饮食方式:生酮饮食。众多国内外明星追捧,无数医生和营养师支持,两位生酮饮食先锋,携手22位医学/营养专家,解开减重和...
正常人体解剖学 内容简介 为适应中医药高职高专教育改革的需要,由国家中医药管理局统一规划、指导,全国高等中医药教材建设研究会具体负责,我们编写了这本新世纪全国中...