توضیحات
This book is a systematic plan to debug your programs. The focus is not on the Python language, although Chapter 3 does cover the basics. Instead, my focus is always on debugging. If youre new to Python debugging, I think this book is a good starting point. Experienced Python programmers might want to review the table of contents, to see if theres anything special that catches their interest.The sample code demonstrates lists, tuples, loops, or classes, but in the simplest form I could imagine. Chapters 1-2 outline how to set up your Python debugging environment, and establish a debugging plan as you write your code.1.Work on small chunks of code, test, and then move on to the next piece.2.Keep multiple backup versions of your files.3.Have a clear idea of what you want your program to do.4.Use small data file samples that you know have clean data to develop your code. When youve tested your code and are confident there are no bugs, use live data connections or real data files. 5.Keep notes of where you stopped programming and the next steps.6.Divide and concur. Divide the code in half and test each half to see which half has the error. Repeat to drill down to the location with the error.7.When debugging, keep a record of experiments, so you know what youve already tried.Chapter 4 has simple suggestions for debugging your code, with specific examples of the code and results. Even if youve never seen Spyder or Python before, at the end of this chapter, I hope youll feel confident debugging most of the issues youll encounter.With the Debugging Overview, youll learn about the Editor, Variable Explorer, and Debug Mode and Interactive Mode in the Console. Well look at those times when you dont see your object in Variable Explorer, and explore why the Console traceback says NameError.Delve into Debug Mode, including basic commands, how to set a breakpoint, and examples of stepping through the code.Add Print Statements (and visual clues for the depth of loop statements).Logging for those times when print statements roll off the screen.Use Interactive Mode with several common Console commands and two magic commands. [object name]?dir(object)help(object)%debug%timeitChapter 5 briefly looks at the types of errors you may encounter, and then in Chapter 6, you can try out your debugging knowledge. Well look at the syntax for retrieving object values, type information, the length of objects or data structures, arguments, and return values. Because syntax varies based on the type and length of objects, there are numerous examples for strings, numbers, tuples, lists, and dictionaries. Well also look at the special None value, unique to Python.Chapter 7 is chock full of examples. The format for each example is the same: Description, Intended Outcome, Actual Result, Incorrect Code, Debugging Steps, How to Resolve the Issue, Good Code, and a Reference to earlier related topics.Finally, the Appendix-Reference chapter includes links to the Python.org docs and the iPython.readthedocs websites for more detailed information.
————————————————————–
ترجمه ماشینی :
این کتاب یک طرح سیستماتیک برای اشکال زدایی برنامه های شما است. تمرکز بر روی زبان پایتون نیست، اگرچه فصل 3 اصول اولیه را پوشش می دهد. در عوض، تمرکز من همیشه روی اشکال زدایی است. اگر با اشکال زدایی پایتون تازه کار هستید، فکر می کنم این کتاب نقطه شروع خوبی است. برنامه نویسان باتجربه پایتون ممکن است بخواهند فهرست مطالب را مرور کنند تا ببینند آیا چیز خاصی وجود دارد که مورد توجه آنها باشد یا خیر. کد نمونه لیست ها، تاپل ها، حلقه ها یا کلاس ها را نشان می دهد، اما در ساده ترین شکلی که می توانم تصور کنم. فصلهای 1-2 نحوه تنظیم محیط اشکالزدایی پایتون خود را تشریح میکند، و در حین نوشتن کد، یک برنامه اشکال زدایی ایجاد میکند. 1. روی تکههای کوچک کد کار کنید، آزمایش کنید و سپس به قسمت بعدی بروید. نسخه های فایل های خود را داشته باشید. 3. ایده روشنی از آنچه می خواهید برنامه شما انجام دهد داشته باشید. وقتی کد خود را آزمایش کردید و مطمئن هستید که هیچ اشکالی وجود ندارد، از اتصالات داده زنده یا فایل های داده واقعی استفاده کنید. 5. از جایی که برنامه نویسی را متوقف کرده اید و مراحل بعدی را یادداشت کنید. 6. تقسیم و موافقت کنید. کد را به دو نیم تقسیم کنید و هر نیمه را تست کنید تا ببینید کدام نیمه خطا دارد. این کار را تکرار کنید تا مکان دارای خطا را مشخص کنید. 7. هنگام اشکال زدایی، یک رکورد از آزمایش ها را نگه دارید تا بدانید که قبلاً چه چیزی را امتحان کرده اید. فصل 4 پیشنهادهای ساده ای برای اشکال زدایی کد شما با نمونه های خاصی از کد و نتایج دارد. حتی اگر قبلاً Spyder یا Python را ندیدهاید، در پایان این فصل، امیدوارم در اشکالزدایی بیشتر مشکلاتی که با آنها مواجه میشوید، مطمئن باشید. با مرور کلی اشکالزدایی، با ویرایشگر، اکسپلورر متغیر، و حالت اشکالزدایی و حالت تعاملی آشنا خواهید شد. در کنسول خوب به آن مواقعی که شیء خود را در Variable Explorer نمیبینید نگاه کنید، و بررسی کنید که چرا ردیابی کنسول میگوید NameError. (و سرنخ های بصری برای عمق عبارات حلقه). ثبت نام برای مواقعی که عبارات چاپی از صفحه خارج می شوند. از حالت تعاملی با چندین دستور معمول کنسول و دو دستور جادویی استفاده کنید. [object name]?dir(object)help(object)%debug%timeit در فصل 5 به طور خلاصه به انواع خطاهایی که ممکن است با آنها برخورد کنید نگاهی میاندازد، و سپس در فصل 6، میتوانید دانش اشکالزدایی خود را امتحان کنید. خوب به نحوی برای بازیابی مقادیر شی، نوع اطلاعات، طول اشیا یا ساختارهای داده، آرگومان ها و مقادیر بازگشتی نگاه کنید. از آنجایی که نحو بر اساس نوع و طول اشیاء متفاوت است، مثالهای متعددی برای رشتهها، اعداد، تاپلها، فهرستها و واژهنامهها وجود دارد. خوب همچنین به مقدار ویژه None، منحصر به فرد پایتون نگاه کنید. فصل 7 پر از مثال است. قالب برای هر مثال یکسان است: توضیحات، نتیجه مورد نظر، نتیجه واقعی، کد نادرست، مراحل رفع اشکال، نحوه حل مشکل، کد خوب، و ارجاع به موضوعات مرتبط قبلی. در نهایت، فصل پیوست-مرجع شامل پیوندهایی به برای اطلاعات دقیق تر، اسناد Python.org و وب سایت iPython.readthedocs.
tag : دانلود کتاب راهنمای اشکال زدایی پایتون , Download راهنمای اشکال زدایی پایتون , دانلود راهنمای اشکال زدایی پایتون , Download Python Debugging Handbook Book , راهنمای اشکال زدایی پایتون دانلود , buy راهنمای اشکال زدایی پایتون , خرید کتاب راهنمای اشکال زدایی پایتون , دانلود کتاب Python Debugging Handbook , کتاب Python Debugging Handbook , دانلود Python Debugging Handbook , خرید Python Debugging Handbook , خرید کتاب Python Debugging Handbook ,

نقد و بررسیها
هنوز بررسیای ثبت نشده است.