03 2020 档案

matplotlib.pyplot.subplots
摘要:来源:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots.html#matplotlib.pyplot.subplots 分别将example1-7的注释去掉并运行,可以看到结果 import numpy as np impor 阅读全文

posted @ 2020-03-20 10:48 风中狂笑 阅读(566) 评论(0) 推荐(0) 编辑

使用python比较两个文件夹的文件并更新
摘要:import os,shutil import datetime #将子文件夹里的文件全部移动出来,去除重复文件(文件名相同,大小相同则跳过) #revised by Stephen Shen #2020-3-8 16:31:07 src='G:\_debug0229' dst='D:\_debug 阅读全文

posted @ 2020-03-19 14:52 风中狂笑 阅读(975) 评论(1) 推荐(0) 编辑

使用python批量提取docx文档中的图片
摘要:注意:此方法只能用于docx文档,doc的不行,doc的得另存为Html文件,进入到上述网页文件所在的文件夹中,你会发现有一个名称为“文件名.files”(如“图片.files”),进入其中,前面 Word 文档中的图片就一一被保存在里面了。 在解压的时候遇到点问题,1,不能解压,2,不能删除文件夹 阅读全文

posted @ 2020-03-19 14:47 风中狂笑 阅读(1463) 评论(3) 推荐(0) 编辑

使用python的读取文件内容和正则表达式
摘要:import os,re filePath='cadallkeywords.txt' fileOutPath='out.txt' strOut=[] if os.path.exists(filePath): with open(filePath,'r', encoding='utf-8') as f 阅读全文

posted @ 2020-03-17 10:47 风中狂笑 阅读(3950) 评论(0) 推荐(1) 编辑

electron的安装、测试与配置为阿里云镜像
摘要:一、安装nodejs 选择Windows Installer https://nodejs.org/en/download/ 在安装过程中的配置界面, 请勾选Node.js runtime、npm package manager和Add to PATH这三个选项 命令行客户端后,通过以下命令来确认 阅读全文

posted @ 2020-03-15 00:00 风中狂笑 阅读(1798) 评论(0) 推荐(0) 编辑

修改pip镜像源和anaconda镜像源
摘要:修改pip镜像源为阿里云 在windows文件夹管理器中输入%appdata%,进入\appdata\roaming目录新建pip目录,新建pip.ini文件 在pip文件中输入以下内容 [global] index-url = http://mirrors.aliyun.com/pypi/simp 阅读全文

posted @ 2020-03-14 23:50 风中狂笑 阅读(1655) 评论(1) 推荐(1) 编辑

在vscode中调试python
摘要:不要太简单,之间搜索了很多文章,都是要自己编lauch.json文件的,其实完全不用,凡是搜到这样的文章就可以跳过了,因为利用vscode完全可以自动生成,不需要修改 1、选择解释器,就是选择python解释器的目录,ctrl+shift+p,可以是anaconda中的环境,.vscode中就会生成 阅读全文

posted @ 2020-03-14 23:44 风中狂笑 阅读(2935) 评论(0) 推荐(0) 编辑

使用VBA在CAD中删除选中对象中的文字和标注
摘要:代码如下 Sub deleteTextAndDimension() Dim oSS As Object On Error Resume Next If Not IsNull(ThisDrawing.SelectionSets.Item("Wolf")) Then Set oSS = ThisDraw 阅读全文

posted @ 2020-03-14 23:34 风中狂笑 阅读(1092) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示