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页
李三台(1938-2018),生于广西桂平江口镇,上过私塾。爱好诗词及收藏,着有《沧海集》。曾任柳州罗池诗社副社长、中国收藏家协会会员、柳州市收藏家协会副会长。...
余光中(1928-2017),诗人,散文家,文学家。祖籍福建永春,现任台湾中山大学文学院院长。一生从事诗歌、散文、评论、翻译,自称为写作的“四度空间”。文学影响...
首部中日电影交涉史一段鲜为人知的战争秘话被战争湮没的电影与电影人颠沛流离的命运哀歌回望东北“满映”,上海“孤岛”,战后香港......................
《医疗对我们仍然有利吗》内容简介:本书紧密贴合医疗领域的热点新闻事件,如今年的新冠大流行、近年来的医患关系紧张、减肥医美养
作品目录第1章 了解JavaScript第2章 开始第3章 语言基础第4章 处理图像第5章 框架第6章 操作浏览器窗口第7章 表单处理第
阿尔弗莱德・希区柯克是举世公认的“悬念大师”。他生于伦敦,1925年开始独立执导电影。1939年应邀去好莱坞,次年拍摄了《蝴蝶梦》,获该年度奥斯卡最佳影片金像奖...
基层法院裁判标准规范(民事卷) 内容简介 本书是人民法院出版社品牌图书《民事裁判标准规范(基层法院、法庭版)》《基层法院民事裁判标准规范》的*新修订版《基层法院...
《百年佛缘》是星云大师的一部口述历史,从1911年辛亥年间谈起,直到现在。顾盼前人与来者,将一个世纪里与星云大师有关的人与事的脉动及轨迹,深入浅出地呈现出来,生...
自从隋炀帝打通南北大运河,穆罕默德在麦加得到天启,世界就进入了洗牌的时代。洗牌风起云涌地延续了好几个世纪,从阿拉伯人建立世界大帝国,日耳曼蛮族成为欧洲新主人,直...
《尘缘3:缘结天界卷》内容简介:纪若尘重返人间。天下混战,道德宗死伤无数,清虚宫惨遭灭门。大罗金仙以消灭九幽之火为名,背着天帝强行派遣天兵天将围剿纪若尘,却被屡...
“医学大神”系列以十四册、九十万字的体量,忠实再现四百年现代医学史,精细描摹十四位业界传奇大神,并穿插解说医学科普知识,是一套集传记、历史、科普于一身的大众读物...
典心台湾畅销言情小说家。1999年出道,作品接近80本,畅销系列有“福尔摩沙”、“金小气家族”等。现代与古代皆得心应手,风格多温馨幸福,疗愈系作者。读者遍布华人...
谭飞,生于1974年9月,毕业于四川大学中文系。影视投资人、制作人、监制。中国影视界知名策划人、影评人。策划电视剧《康熙微服私访记》、电影《长江图》等。出版图书...
作品目录第一章 地形与见证:寻找《圣经》1 画家的朝圣历程第二章 应许之地的诸城市1 亚实基伦的诸多时期第三章 耶路撒冷:夙愿
关节镜手术学 内容简介 本书分五篇三十四章,内容包括关节镜基础、膝关节的关节镜手术、肩关节的关节镜手术、腕部的关节镜手术及其他关节镜手术。本书总结了关节镜手术学...
陈来,清华大学国学研究院院长、清华大学校学术委员会副主任、清华大学哲学系教授,中央文史馆馆员,教育部社科委哲学学部委员,中国哲学史学会会长、中华朱子学会会长。著...
马修•巴布莱,出生于1987年,毕业于应用艺术与图像学校(ENAAI)。他将自己的首部漫画作品《美丽的死亡》投稿于法国Ankama出版社并顺利出版,此书也成为了...
Inthiswide-rangingworkRuthPadelexploresGreekconceptionsofhumaninnernessandtheway...
全球男人的圣经,政坛大佬的挚爱世界影史神作,改编自美国出版史头号畅销书姜文、《疯狂动物城》致敬对象《2001太空漫游》导演10刷认证豆瓣82万人9.3高分IMD...
《在體制內遊說》聚焦於中國市場轉型中和政治制度結構下企業家對於政策過程的影響,試圖初步回答以下研究問題: 第一,在當代中國市場轉型中,企業家如何影響政策過程? ...