
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
سادگی پایتون به شما کمک میکند که خیلی زود به بهرهوری برسید، اما این موضوع اغلب به این معناست که از تمام امکانات آن استفاده نمیکنید. با این راهنمای عملی، یاد خواهید گرفت که چگونه با بهرهگیری از بهترین و شاید نادیده گرفتهشدهترین ویژگیهای پایتون، کدهایی کارآمد و اصیل بنویسید. نویسنده، لوسیانو رامالهو، شما را با ویژگیها و کتابخانههای هستهای پایتون آشنا میکند و نشان میدهد چگونه کدهایی کوتاهتر، سریعتر و در عین حال خواناباتر بنویسید. بسیاری از برنامهنویسان باتجربه تلاش میکنند پایتون را با الگوهایی که از زبانهای دیگر آموختهاند تطبیق دهند و هرگز ویژگیهای پایتون را فراتر از تجربه خود کشف نمیکنند. با این کتاب، آن دسته از برنامهنویسان پایتون به طور کامل یاد خواهند گرفت که چگونه در پایتون ۳ به مهارت برسند. این کتاب مباحث زیر را پوشش میدهد: مدل دادهای پایتون: درک اینکه چگونه متدهای خاص کلید رفتار سازگار اشیاء هستند؛ ساختارهای داده: بهرهبرداری کامل از انواع توکار و درک دوگانگی متن در برابر بایت در عصر یونیکد؛ توابع به عنوان شیء: نگاه به توابع پایتون به عنوان اشیاء درجه اول و درک تأثیر آن بر الگوهای طراحی محبوب؛ اصطلاحات شیءگرا: ساخت کلاسها با آموختن درباره ارجاعات، تغییرپذیری، واسطها، سربارگذاری عملگرها و وراثت چندگانه؛ جریان کنترل: استفاده از مدیران زمینه، تولیدکنندهها، کوروتینها و همزمانی با بستههای concurrent.futures و asyncio؛ فرابرنامهنویسی: درک نحوه کارکرد ویژگیها، توصیفگرهای صفت، دکوراتورهای کلاس و فرامتاکلاسها.
"Python's simplicity lets you become productive quickly, but this often means you aren t using everything it has to offer. With this hands-on guide, you ll learn how to write effective, idiomatic Python code by leveraging its best and possibly most neglected features. Author Luciano Ramalho takes you through Python's core language features and libraries, and shows you how to make your code shorter, faster, and more readable at the same time. Many experienced programmers try to bend Python to fit patterns they learned from other languages, and never discover Python features outside of their experience. With this book, those Python programmers will thoroughly learn how to become proficient in Python 3. This book covers: Python data model: understand how special methods are the key to the consistent behavior of objects; Data structures: take full advantage of built-in types, and understand the text vs bytes duality in the Unicode age; Functions as objects: view Python functions as first-class objects, and understand how this affects popular design patterns; Object-oriented idioms: build classes by learning about references, mutability, interfaces, operator overloading, and multiple inheritance; Control flow: leverage context managers, generators, coroutines, and concurrency with the concurrent.futures and asyncio packages; Metaprogramming: understand how properties, attribute descriptors, class decorators, and metaclasses work."--Provided by publisher