وبلاگ بلیان

C and Python Applications : Embedding Python Code in C Programs, SQL Methods, and Python Sockets

معرفی کتاب «C and Python Applications : Embedding Python Code in C Programs, SQL Methods, and Python Sockets» نوشتهٔ Philip Joyce;(auth.)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2022. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «C and Python Applications : Embedding Python Code in C Programs, SQL Methods, and Python Sockets» در دستهٔ بدون دسته‌بندی قرار دارد.

Solve problems by embedding Python code in a C programs, SQL methods, Python sockets. This book uses rudimentary mathematics and basic programming to create practical Python applications for embedding. You'll start with an introduction to C and Python, assuming a fundamental understanding of what programming is. You will also review the basics of the database management language, SQL. You will learn how to use SQL from a C program and from a Python program. C and Python have different programming strengths, and you will learn how to write a Python program embedded within a C program to profit from the strength of each, in one program. Finally, you will explore how socket programs enable two computers to communicate with each other. Here the book covers basic server-client, basic threaded, and basic chat programs. What You Will Learn Review basic Python and C coding Understand the methods of embedding Python code within a C program Create typical programs in Python and C using SDK Work with socket applications in Python Who This Book Is For Programmers and computational modelers with at least some prior experience with programming in C and Python as well as programming in general. -- Provided by publisher Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Chapter 1: Python Programming Definition of Variables Real (Float) Numbers Characters Reading in Data Arrays Inserting into an Array Deleting (Removing) from an Array Searching Updating an Array Appending to an Array Strings Lists Reading Entries in a List Updating a List Deleting an Element from List Appending to a List Dictionaries Creating a Dictionary Appending to a Dictionary Amending a Dictionary Deleting from a Dictionary Searching Through a Dictionary Tuples Creating a Tuple Concatenating Two Tuples Creating Nested Tuples Creating Repeated Tuples Converting a List or a String into a Tuple Creating Single-Element Tuple Reading Tuple Searching Within a Tuple Deleting a Tuple Using Tuple to Create Variables If Then Else Loops (For and While) For Loops While Loops Switches Arithmetic Operations Using Numpy Numpy Calculations Mathematical Graph Functions User-Written Functions File Access Regressions Summary Exercises Chapter 2: C Programming C Program Format Adding Two Numbers Multiply and Divide Two Numbers For Loops Do While Loops Switch Instruction If Else If Else If Data Arrays Functions Strings Structures Size of Variables Goto Command Common Mathematical and Logical Symbols File Access Student Records File Summary Exercises Chapter 3: SQL in C Review of SQL and SQLite Creating the Database Creating a Table Inserting Rows Insert a Preset Row Inserting a User-Entered Row Selecting Rows Selecting a Row Preset Selecting All Rows Selecting Rows by Age Amending Rows Deleting Rows Summary Exercises Chapter 4: SQL in Python Review of SQL Create a Table Mechanism for Inserting a Row Create a Table and Insert Two Preset Rows Insert Six Preset Rows Insert a Row Specified by the User Update a Row Update a Row, Preset Update a Row by User Insert and Update a Row Select a Row Select a User-Entered Row Select by Age in Descending Order User-Entered Select by Age Delete a Row Read a Table Summary Exercises Chapter 5: Embedded Python Basic Mechanism Plot a 2D Line Plot Two 2D Lines Plot Trigonometric Curves Enter Data to Plot 2D Center of Mass Plot Histograms Importing a Picture Summary Exercise Chapter 6: Sockets A Closer Look at Sockets Basic Client-Server Server-Client Pair to Send-Receive a File Threaded Programs Closing Down a Threaded Server Chat Programs Summary Exercise Appendix A: Answers to Examples Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Index Solve Problems By Embedding Python Code In A C Programs, Sql Methods, Python Sockets. This Book Uses Rudimentary Mathematics And Basic Programming To Create Practical Python Applications For Embedding. You'll Start With An Introduction To C And Python, Assuming A Fundamental Understanding Of What Programming Is. You'll Also Review The Basics Of Sql And Using It In C By Writing Separate C Programs Followed By Using Sql In Python By Writing Separate Python Programs. The Book Then Moves On To The Methods Of Embedding Python Code Within A C Program Such As Plot A Graph With Preset Points And User-entered Points In Python Program, And How To Print From A Dictionary. You Wrap Things Up By Exploring How Socket Programs Enable Two Computers To Communicate With Each Other. Here It Covers Basic Server-client, Basic Threaded, And Basic Chat Programs. What You'll Learn Review Basic Python And Coding Understand The Methods Of Embedding Python Code Within A C Program Create Typical Programs In Python And C Using Sdk Work With Socket Applications In Python Who This Book Is For Programmers And Computational Modelers With At Least Some Prior Experience With Programming In C And Python As Well As Programming In General.
دانلود کتاب C and Python Applications : Embedding Python Code in C Programs, SQL Methods, and Python Sockets