![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C++/Python编程
c++与python编程的二三事
颜良文良
深度学习小白
展开
-
【C++/Python编程】pyinstaller .py打包成可执行程序
pyinstaller app.py --onefile --hidden-import web.wsgiserver.wsgiserver3 --hidden-import app原创 2020-03-27 16:30:28 · 428 阅读 · 0 评论 -
【C++/Python编程】vs中使用taskkill结束进程忽略输出信息
system(("taskkill /pid " + str + " -f 1>nul 2>nul").c_str());str通过_getpid获得并转换string类型:int iPid = (int)_getpid(); char ch[10];_itoa(iPid, ch, 10);//下面把char*转成stringstring str(ch, ch +...原创 2020-02-25 10:22:16 · 644 阅读 · 1 评论 -
【C++/Python编程】c++调用python
参考:https://docs.python.org/3/c-apihttps://blog.csdn.net/lingtianyulong/article/details/81146495基础vs2015导入python包直接略过直接上代码:c++代码:main.cpp#include <Python.h>#include <iostream>#in...原创 2020-01-12 23:01:34 · 299 阅读 · 0 评论 -
【C++/Python编程】PIL进行图像按位取反
def stretching_rev(image): img = np.array(image) img = ~img img = Image.fromarray(img) return img原创 2019-12-12 17:41:29 · 598 阅读 · 0 评论