پایتون روان: برنامه نویسی واضح، مختصر و موثر ویرایش دوم
وقت خود را برای خم کردن پایتون تلف نکنید تا الگوهایی را که به زبان های دیگر یاد گرفته اید مطابقت دهید. سادگی پایتون به شما این امکان را می دهد که به سرعت کارآمد شوید، اما اغلب این بدان معناست که شما از همه چیزهایی که زبان ارائه می دهد استفاده نمی کنید. با نسخه به روز شده این راهنمای عملی، نحوه نوشتن کد موثر و مدرن پایتون 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