Create a Dynamic-Link Library with DevC++ for Python

提供方
Coursera Project Network
在此指導項目中,您將:

Write a C Function in a Dynamic Library that computes the power function for an Array.

Use a C program to load the Dynamic Library and Test it with an Array.

Set up a Python project that Loads the C Dynamic Library using the Python ctypes package.

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

By the end of this project you will implement a function using C that raises each element of an array to a given power and then call the function using the Python ctypes package. The C programming language is the basis for many other programming languages. Its performance cannot be matched in any other language. Python is known for its simplicity, allowing the programmer to focus on the application. Sometimes it is useful to take advantage of the speed of C in a Python application. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培養的技能

  • python ctypes
  • C Libraries
  • C Standard Library
  • Python Programming
  • c dll development

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create a C Dynamic Library using Dev-C++.

  2. Write a C Function in a Dynamic Library that computes the power function for an Array.

  3. Use a C program to load the Dynamic Library and Test it with an Array.

  4. Set up a Python project that Loads the C Dynamic Library using the Python ctypes package.

  5. Create an array in the Python Application and call the C function to calculate the power.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心