پایتون روان: برنامه نویسی واضح، مختصر و موثر ویرایش دوم
وقت خود را برای خم کردن پایتون تلف نکنید تا الگوهایی را که به زبانهای دیگر یاد گرفتهاید مطابقت دهید. سادگی پایتون به شما این امکان را می دهد که به سرعت کارآمد شوید، اما اغلب این بدان معناست که شما از همه چیزهایی که زبان ارائه می دهد استفاده نمی کنید. با نسخه به روز شده این راهنمای عملی، نحوه نوشتن کد موثر و مدرن پایتون 3 را با استفاده از بهترین ایده های آن یاد خواهید گرفت.
ویژگی های اصطلاحی پایتون 3 را فراتر از تجربه قبلی خود کشف و اعمال کنید. نویسنده لوسیانو رامالیو شما را از طریق ویژگیها و کتابخانههای زبان اصلی پایتون راهنمایی میکند و به شما میآموزد که چگونه کد خود را کوتاهتر، سریعتر و خواناتر کنید.
این نسخه جدید که با بهروزرسانیهای اصلی در سرتاسر آن کامل شده است، دارای پنج بخش است که به عنوان پنج کتاب کوتاه در کتاب کار میکنند:
ساختارهای داده: توالی ها، دستورات، مجموعه ها، یونیکد و کلاس های داده
توابع به عنوان اشیا: توابع درجه یک، الگوهای طراحی مرتبط، و نکات نوع در اعلان تابع
اصطلاحات شی گرا: ترکیب، وراثت، ترکیب، رابط ها، بارگذاری بیش از حد اپراتور، پروتکل ها، و انواع ایستا بیشتر
جریان کنترل: مدیران زمینه، مولدها، برنامههای مشترک، همگامسازی/انتظار، و مجموعههای رشته/فرآیند
فرابرنامهنویسی: ویژگیها، توصیفگرهای ویژگی، تزئینکنندههای کلاس، و قلابهای فرابرنامهنویسی کلاس جدید که جایگزین یا سادهسازی متاکلاسها میشوند.
Fluent Python: Clear, Concise, and Effective Programming 2nd Edition
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
-
Product details
- ASIN : B09WZJMMJP
- Publisher : O'Reilly Media; 2nd edition (March 31, 2022)
- Publication date : March 31, 2022
- Language : English
- File size : 13420 KB
- Simultaneous device usage : Unlimited
- Text-to-Speech : Enabled
- Enhanced typesetting : Enabled
- X-Ray : Not Enabled
- Word Wise : Not Enabled
- Print length : 1016 pages