我爱编程

PyQt5&Python调用DLL踩坑填坑心路历程ˊ_>ˋ

2018-05-26  本文已影响0人  Leeehan
2018.05.26

0x01

0x02

0x03

0x04

2018.05.27

0x05

0x06

#include <Python.h>
#include <stdio.h> 
int main()
{  
    char str[81];
    int h=1,m=20,s=30;
    sprintf(str,"# coding=gbk\nprint('%d小时%d分钟%d秒')",h,m,s);
    Py_Initialize();
    PyRun_SimpleString(str);
    Py_FinalizeEx();
}

0x07

2018.05.28

0x08

0x09

0x0A

2018.05.30

0x0B

0x0C

2018.05.31

0x0D

#一维
pin = (c_int*3)()
#二维
pin = (c_int*3*3)((1,2,3),(4,5,6),(7,8,9))
2018.06.01
2018.06.02
上一篇 下一篇

猜你喜欢

热点阅读