
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
وقت خود را برای تطبیق دادن پایتون با الگوهایی که در زبانهای دیگر آموختهاید هدر ندهید. سادگی پایتون به شما اجازه میدهد خیلی زود به بهرهوری برسید، اما این موضوع اغلب به این معناست که از تمام امکانات زبان استفاده نمیکنید. با نسخه بهروزرسانیشدهی این راهنمای کاربردی، یاد میگیرید که چگونه با بهرهگیری از بهترین ایدههای پایتون 3، کدهایی مدرن و اثرگذار بنویسید.
ویژگیهای اصطلاحی و رایج پایتون 3 را فراتر از تجربیات گذشتهتان کشف و اعمال کنید. لوسیانو رامالو، نویسنده کتاب، شما را با ویژگیها و کتابخانههای اصلی پایتون آشنا میکند و به شما میآموزد چگونه کدهایی کوتاهتر، سریعتر و خواناتر بنویسید.
این نسخه جدید که در سرتاسر آن بهروزرسانیهای اساسی انجام شده، شامل پنج بخش است که هر کدام مانند یک کتاب کوچک در دل اثر عمل میکنند:
- ساختارهای داده: دنبالهها، دیکشنریها، مجموعهها، یونیکد و کلاسهای داده
- توابع به عنوان اشیاء: توابع درجه یک، الگوهای طراحی مرتبط، و راهنماییهای نوع در تعاریف توابع
- اصطلاحات شیءگرا: ترکیب، وراثت، میکسینها، اینترفیسها، سربارگذاری عملگرها، پروتکلها و موارد دیگر در حوزهی انواع ایستا
- کنترل جریان: مدیران متن، مولدها، کوروتینها، ناهمگام/انتظار (async/await)، و استخرهای ترد/پروسه
- فرابرنامهنویسی: ویژگیها، توصیفگرهای صفت، دکوراتورهای کلاس، و قلابهای جدید فرابرنامهنویسی کلاس که جایگزین یا سادهکننده متاکلاسها میشوند.
Don't waste time bending Python to fit patterns you've learned in other languages. Python's simplicity lets you become productive quickly, but often this means you aren't using everything the language has to offer. With the updated edition of this hands-on guide, you'll learn how to write effective, modern Python 3 code by leveraging its best ideas.Discover and apply idiomatic Python 3 features beyond your past experience. Author Luciano Ramalho guides you through Python's core language features and libraries and teaches you how to make your code shorter, faster, and more readable.Complete with major updates throughout, this new edition features five parts that work as five short books within the book:Data structures: Sequences, dicts, sets, Unicode, and data classes Functions as objects: First-class functions, related design patterns, and type hints in function declarations Object-oriented idioms: Composition, inheritance, mixins, interfaces, operator overloading, protocols, and more static types Control flow: Context managers, generators, coroutines, async/await, and thread/process pools Metaprogramming: Properties, attribute descriptors, class decorators, and new class metaprogramming hooks that replace or simplify metaclasses