
Python应用笔记
Stormreaver
这个作者很懒,什么都没留下…
展开
-
win7 swig c++封装 python 扩展
用swig在windows上实现Python 的c++扩展在SWIG官网下载最新的Swigwin,解压 2. .添加环境变量将swig.exe所在文件夹目录添加到环境变量path中3. 检查是否配置成功 运行cmd.exe ,输入swig -help,出现如下图所示提示信息即为配置成功 4. 用vs2013建立工程新建win32控制台应用程序,配置类型为动态链接库.dll;添加新建文件exa原创 2017-05-27 12:24:05 · 629 阅读 · 0 评论 -
python3.5和python3.6 下DES解密
python3.5和python3.6 下DES解密python3.5下python3.6下python3.5下使用Crypto就行,安装方式:pip install pycryptopython调用如下:from Crypto.Cipher import DESpython3.6下由于Crypto库在windows10环境中对python3.6的支持有限,故采用Crypto的扩...原创 2019-02-27 16:21:20 · 853 阅读 · 0 评论 -
python3 中文文件读取
python3 中文文件读取 f = open(filePath, "r") r = f.read() text = str(r.encode('utf-8'), encoding = "utf-8")原创 2019-02-27 17:07:12 · 1258 阅读 · 0 评论