Mark Pilgrim's Dive Into Python 3 is a hands-on guide to Python 3 (the latest version of the Python language) and its differences from Python 2. As in the original book, Dive Into Python, 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 book includes:
* Example programs completely rewritten to illustrate powerful new concepts now available in Python 3: sets, iterators, generators, closures, comprehensions, and much more
* A detailed case study of porting a major library from Python 2 to Python 3
* A comprehensive appendix of all the syntactic and semantic changes in Python 3
This is the perfect resource for you if you need to port applications to Python 3, or if you like to jump into languages fast and get going right away.
What you'll learn
* Understand Python 3 code by seeing it broken down and explained
* Make full use of the latest Python features such as iterators, generators, closures, classes and comprehensions
* Refactor existing code to improve maintainability
* Learn how to serialize Python objects with the pickle protocol and JSON format
* Learn how to package your own Python libraries and upload them to the Python Package Index to share your projects with Python developers worldwide
* Use Python 3 to consume HTTP web services
* Port existing Python applications to Python 3 by following a case study for a major library
Who is this book for?
* Anyone who wants to learn the latest version of Python in a fast, hands-on fashion
* Existing Python programmers who want to learn quickly how to make the most of the features of the latest version of Python and port their code to it
* Programmers coming from other languages wanting a fast introduction to Python that gets them thinking about advanced concepts quickly
By day, Mark Pilgrim is a developer advocate for open source and open standards. By night, he is a husband and father who lives in North Carolina with his wife, his two sons, and his big slobbery dog. He spends his copious free time sunbathing, skydiving, and making up autobiographical information.
Otherpeopleponderedthesequestions,andtheycameupwithasolution:
——引自第110页
Thistechniqueofusingthevaluesofoutsideparameterswithinadynamicfunctioniscalledclosures.
——引自第160页
在西方,关于心理创伤疗愈的著作非常丰富,其中最通俗易懂的当属美国顶级心理创伤专家朱迪思•赫尔曼所写的《创伤与复原》。书中对于心理创伤的来源与内涵有很清楚的定义:...
张小娴,香港著名言情小说家,95年推出第一部长篇小说《面包树上的女人》而走红文坛,是继亦舒之后,香港最受欢迎的言情小说家。生于香港、祖籍广东开平的张小娴,大学主...
传统医学纵横谈:漫步在科学与人文之间 本书特色 本书作者对医学学科与人文学科紧密结合,通过丰富的史实,配合有趣的插图,向读者介绍了中医学、民族医学以及东南亚国际...
血液病(第2版) 内容简介 本书为《专科专病名医临证经验丛书》的血液病分册。对近十几年来中医研究治疗血液病的成果及经验进行了深入总结,以现代医学病名为纲,收载了...
A century and a half after its publication, "Moby-Dick" still stands as a litera...
川端康成(1899-1972),日本小说家,新感觉派代表作家之一。他的作品有印象主义色彩,意境新颖,同时由于受佛教影响较深,作品常带有消极悲观情调。代表作有《雪...
《走向文化复兴:全球化时代的中国文学与文化》内容简介:当下中国正致力于实现“中国梦”与民族复兴的伟大事业。中国的伟大复兴根
妇人大全良方译注(中医古籍名著编译丛书) 内容简介本书共24卷,原分8门,共260多篇论述。薛己《校注妇人良方》增删了部分内容,分为10门,每论之下,都加按语,...
《杀死一只知更鸟》是公认的美国文学经典,而它在教育领域的意义却使其突破了国界,成为世界上最有名的成长小说之一。《杀死一只知更鸟》在西方世界的影响力巨大,是美国中...
《官术》内容简介:身在仕途,追逐权力是势所必然,主人公薛冰也不例外。受处分刘瑟困山区担任镇党委书记,环境的恶劣、政敌的压
张永和美国建筑师协会院士,非常建筑创始人、主持建筑师,麻省理工学院荣休教授。1984年获得加州大学伯克利分校建筑硕士学位,1993年在美国与鲁力佳创立非常建筑,...
《中国近代史:危局与变革》为“新编中国史”中的一卷。鸦片战争以来,中国面临前所未有的危局,也催生了波澜壮阔的变革。《中国近代史:危局与变革》全书共十四章,展现了...
★世界上最短的诗,日本人的心之风景。★“风雅俳句”系列春、夏、秋、冬全四卷,浮世绘彩插精装典藏。俳句的魅力,尽在本书。★收录俳句开宗鼻祖荒木田守武、“俳圣”松尾...
张羹梅医案-江南名医医案精选(第二版) 内容简介 张羹梅先生,精于医理,勤于临床,经验丰富,擅长治疗胃肠病证和内科杂病,在辨证论治和理法方药方面有其独到之处。本...
在这个特殊的时代,如何带着勇气活出我们真正想要的人生?帕克·帕尔默创立的“勇气与新生中心”历经近30年的发展,开创的“信任圆圈法”广泛运用在全世界各行各业的个体...
中医基础理论笔记-第2版 本书特色 《中医基础理论笔记(第2版)》:从枯燥中发地找趣味,在琐碎中提炼精华,到考试中练就高分,从零散中挖掘规律,由成长中迈向成功,...
熊非鱼,年弱冠,性素温良,狗急了亦跳墙。平生嗜文,此外最喜三件事:自欺、欺人、被人欺。大学生,现就读于中国人民大学,之前曾经以笔名在青春杂志《花火》以及《海峡风...
刑事审判参考(总第121集) 本书特色 【指导案例】支玖龙以危险方法危害公共安全案[第1314号]--故意驾车冲撞疫情防控站的行为定性上海万晖特工贸有限公司、谢...
图说草莓整形修剪与12月栽培管理 本书特色 现在一年四季都可以吃到草莓,人们已经不清楚草莓的旺季到底是什么时候了。其实,草莓原本的旺季是春季。如果选择适宜的草莓...
当代有关民主政治的理论著作,即使谈不上“多如牛毛”,至少也是“群芳争艳”。这些争奇斗艳的民主理论,不论是经验性的或是规范性的,各就不尽相同的理论基石,开展出互有...