
عنوان:
Learning Python
نویسنده:
Mark Lutz
انتشارات:
O'Reilly Media
تاریخ انتشار
2025
حجم:
8.8MB
معرفی کتاب:" یادگیری کامل زبان پایتون از مقدماتی تا پیشرفته با تمرکز بر شیءگرایی "
یک معرفی جامع و عمیق از زبان اصلی پایتون با این کتاب کاربردی
بر پایهی دورهی آموزشی محبوب مارک لوتز، این ویرایش ششم بهروزشده به شما کمک میکند تا بهسرعت کدهایی باکیفیت و کارآمد با پایتون بنویسید.
این کتاب، چه تازهکار باشید و چه توسعهدهندهای حرفهای با تجربه در زبانهای دیگر، راهی ایدهآل برای شروع یادگیری زبان پایتون است. با آزمونها، تمرینها و تصویرسازیهای مفید، این آموزش گامبهگام و قابل دنبالکردن بهصورت خودآموز شما را با پایتون 3.12 و دیگر نسخههای رایج امروزی آشنا میکند.
این کتاب با تمرکز عملی بر آنچه واقعاً باید بدانید، همچنین ویژگیهای پیشرفتهتری از زبان را معرفی میکند که امروزه در کدهای پایتون بسیار رایج شدهاند.
آنچه در این کتاب خواهید آموخت
- آشنایی با انواع شیء داخلی پایتون مانند رشتهها، لیستها، دیکشنریها و فایلها
- ایجاد و پردازش اشیاء با دستورات پایتون و درک مدل نحوی زبان
- استفاده از توابع و برنامهنویسی تابعی برای افزایش بازاستفاده و کاهش تکرار
- سازماندهی کد به اجزای بزرگتر با استفاده از ماژولها و بستهها
- نوشتن برنامههای مقاوم با استفاده از مدیریت استثنا و ابزارهای توسعه پایتون
- ایجاد کدهای قابلسفارشیسازی با استفاده از برنامهنویسی شیءگرا و کلاسها
- بررسی ابزارهای پیشرفته پایتون مانند دکوراتورها، توصیفگرها و متاکلاسها
- نوشتن کدی استاندارد و قابل حمل برای اجرا در پلتفرمهای گوناگون
مخاطبان این کتاب
مناسب برای تمامی علاقمندان به یادگیری زبان پایتون، از مبتدیان بدون تجربه برنامهنویسی تا توسعهدهندگان حرفهای که بهدنبال درک عمیقتر از زبان هستند.
فهرست مطالب
- Preface
- Part I: Getting Started
- Chapter 1: A Python Q&A Session
- Why Do People Use Python?
- Is Python a “Scripting Language”?
- OK, but What’s the Downside?
- Who Uses Python Today?
- What Can I Do with Python?
- What Are Python’s Technical Strengths?
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 2: How Python Runs Programs
- Introducing the Python Interpreter
- Program Execution
- Execution-Model Variations
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 3: How You Run Programs
- Installing Python
- Interactive Code
- Program Files
- Other Ways to Run Files
- Which Option Should I Use?
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part I Exercises
- Part II: Objects and Operations
- Chapter 4: Introducing Python Objects
- The Python Conceptual Hierarchy
- Why Use Built-in Objects?
- Python’s Core Object Types
- Numbers
- Strings
- Lists
- Dictionaries
- Tuples
- Files
- Other Object Types
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 5: Numbers and Expressions
- Numeric Object Basics
- Python Expression Operators
- Numbers in Action
- Other Numeric Objects
- Numeric Extensions
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 6: The Dynamic Typing Interlude
- The Case of the Missing Declaration Statements
- Shared References
- Dynamic Typing Is Everywhere
- Type Hinting: Optional, Unused, and Why?
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 7: String Fundamentals
- String Object Basics
- String Literals
- Strings in Action
- String Methods
- String Formatting: The Triathlon
- General Type Categories
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 8: Lists and Dictionaries
- Lists
- Lists in Action
- Dictionaries
- Dictionaries in Action
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 9: Tuples, Files, and Everything Else
- Tuples
- Files
- Core Types Review and Summary
- Other Types in Python
- Built-in Type Gotchas
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part II Exercises
- Part III: Statements and Syntax
- Chapter 10: Introducing Python Statements
- The Python Conceptual Hierarchy Revisited
- Python’s Statements
- A Tale of Two ifs
- A Quick Example: Interactive Loops
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 11: Assignments, Expressions, and Prints
- Assignments
- Expression Statements
- Print Operations
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 12: if and match Selections
- if Statements
- match Statements
- Python Syntax Revisited
- Truth Values Revisited
- The if/else Ternary Expression
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 13: while and for Loops
- while Loops
- break, continue, pass, and the Loop else
- for Loops
- Loop Coding Techniques
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 14: Iterations and Comprehensions
- Iterations
- Comprehensions
- Iteration Tools
- Other Iteration Topics
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Chapter 15: The Documentation Interlude
- Python Documentation Sources
- Common Coding Gotchas
- Chapter Summary
- Test Your Knowledge: Quiz
- Test Your Knowledge: Answers
- Test Your Knowledge: Part III Exercises
- Part IV: Functions and Generators
- Chapter 16: Function Basics
- Chapter 17: Scopes
- Chapter 18: Arguments
- Chapter 19: Function Odds and Ends
- Chapter 20: Comprehensions and Generations
- Chapter 21: The Benchmarking Interlude
- Part V: Modules and Packages
- Chapter 22: Modules: The Big Picture
- Chapter 23: Module Coding Basics
- Chapter 24: Module Packages
- Chapter 25: Module Odds and Ends
- Part VI: Classes and OOP
- Chapter 26: OOP: The Big Picture
- Chapter 27: Class Coding Basics
- Chapter 28: A More Realistic Example
- Chapter 29: Class Coding Details
- Chapter 30: Operator Overloading
- Chapter 31: Designing with Classes
- Chapter 32: Class Odds and Ends
- Part VII: Exceptions
- Chapter 33: Exception Basics
- Chapter 34: Exception Coding Details
- Chapter 35: Exception Objects
- Chapter 36: Exception Odds and Ends
- Part VIII: Advanced Topics
- Chapter 37: Unicode and Byte Strings
- Chapter 38: Managed Attributes
- Chapter 39: Decorators
- Chapter 40: Metaclasses and Inheritance
- Chapter 41: All Good Things
- Part IX: Appendixes
- Appendix A: Platform Usage Tips
- Appendix B: Solutions to End-of-Part Exercises
- Index
- About the Author
مشخصات
نام کتاب
Learning Python
نویسنده
Mark Lutz
انتشارات
O'Reilly Media
تاریخ انتشار
2025
ISBN
9781098171308
تعداد صفحات
2200
زبان
انگلیسی
فرمت
حجم
8.8MB
موضوع
Python Programming;Best Practices in Python;Object-Oriented & Functional Techniques in Python