python调用c示例
目录 dll.h
main.c
Python部分: dll.h
#ifndef _DLL_H_
#define _DLL_H_#include <windows.h>#if BUILDING_DLL
#define DLLIMPORT __declspec(dllexport)
#else
#define DLLIMPORT __declspec(dllimport)
#endif#ifdef __cplusplus
extern "C" …
2026/7/18 21:51:46