عنوان کتاب به انگلیسی
|
کتاب راهنمای اشکال زدایی پایتون
|
| سال انتشار کتاب |
2020 |
| زبان |
انگلیسی |
| ناشر |
Independent |
| ISBN10 |
8608293730 |
| ISBN13 |
9798608293733 |
| حجم و فرمت فایل |
PDF | EPUB, 7.55 MB |
| نویسندگان |
Zimmerman, RL |
توضیحات کتاب
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 you’re 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 there’s 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 you’ve 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 you’ve already tried.Chapter 4 has simple suggestions for debugging your code, with specific examples of the code and results. Even if you’ve never seen Spyder or Python before, at the end of this chapter, I hope you’ll feel confident debugging most of the issues you’ll encounter.•With the Debugging Overview, you’ll learn about the Editor, Variable Explorer, and Debug Mode and Interactive Mode in the Console. We’ll look at those times when you don’t 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. We’ll 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. We’ll 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 طرح چگونگی تنظیم محیط اشکال زدایی پایتون خود را تنظیم کنید ، و یک برنامه اشکال زدایی ایجاد کنید.هنگامی که کد خود را آزمایش کرده اید و اطمینان دارید که هیچ اشکالی وجود ندارد ، از اتصالات داده زنده یا پرونده های داده واقعی استفاده کنید.5. یادداشت های مربوط به جایی که شما برنامه نویسی را متوقف کرده اید و مراحل بعدی .6.Divide و Concur.کد را به نصف تقسیم کنید و هر نیمی را آزمایش کنید تا ببینید که نیمی از آنها خطا دارد.تکرار کنید تا با خطا به مکان بروید.حتی اگر قبلاً Spyder یا Python را ندیده اید ، در پایان این فصل ، امیدوارم که با اطمینان از اشکال زدایی بیشتر مواردی که با آنها روبرو خواهید شد ، اطمینان حاصل کنید. • با نمای کلی اشکال زدایی ، در مورد ویرایشگر ، Expertarer متغیر و حالت اشکال زدایی و حالت تعاملی در کنسول یاد خواهید گرفت.ما به مواقعی خواهیم پرداخت که شما شیء خود را در Exputer Explorer مشاهده نمی کنید ، و بررسی خواهیم کرد که چرا کنسول ردیابی می گوید “NameError.”[نام شی]؟ dir (شی) راهنما (شی) ٪ اشکال زدایی ٪ TimeIchapter 5 به طور خلاصه به انواع خطاهایی که ممکن است با آنها روبرو شوید ، نگاه می کند ، و سپس در فصل 6 می توانید دانش اشکال زدایی خود را امتحان کنید.ما برای بازیابی مقادیر شی ، اطلاعات تایپ ، طول اشیاء یا ساختار داده ها ، آرگومان ها و مقادیر بازگشت به نحو خواهیم پرداخت.از آنجا که نحو بر اساس نوع و طول اشیاء متفاوت است ، نمونه های بی شماری برای رشته ها ، اعداد ، tuples ، لیست ها و فرهنگ لغت وجود دارد.ما همچنین به مقدار ویژه “هیچ” ، منحصر به فرد برای Python.Chapter 7 پر از نمونه ها می پردازیم.قالب برای هر مثال یکسان است: توضیحات ، نتیجه در نظر گرفته شده ، نتیجه واقعی ، کد نادرست ، مراحل اشکال زدایی ، نحوه حل مسئله ، کد خوب و اشاره به مباحث مرتبط با آن قبلی. در آخر ، فصل مرجع ضمیمه شامل پیوندهایی به اسناد Python.org و iPython.Readthedocs برای اطلاعات دقیق تر است.
|
توجه کنید که این محصول به صورت فایل دانلودی است و نه کتاب کاغذی.
|
|
به هنگام خرید به زبان درج شده برای کتاب حتما توجه کنید. به صورت معمول در اکثر موارد زبان کتاب فارسی نیست.
|
|
در صورت هرگونه مشکل در دریافت کتاب به شماره 09395106248 پیامک دهید.
|
|
درج شماره موبایل برای سفارش ضروری نیست ولی ترجیح آن است درج گردد تا در صورت بروز مشکل اولین راه ارتباطی ما با شما باشد.
|
چنانچه در دریافت محصول به هر دلیلی با مشکل روبرو شدید و مطمئن از پرداخت موفق وجه هستید به شماره تماس زیر نام، نام خانوادگی و نام محصول را پیامک بزنید تا لینک محصول سریعا برای شما ارسال گردد.
شماره تماس: 09395106248
|
نقد و بررسیها
هنوز بررسیای ثبت نشده است.