
python
Surplus°
If not me, then who? If not now, then when?
展开
-
用python实现多帧点云文件的播放
我们可以通过meshlab去打开单帧的点云文件,但是不能播放多帧的点云,因此通过python库进行播放,下面是详细代码。python代码#引入python库numpy和open3d,可以通过pip install命令安装import osimport numpy as npimport open3d as o3d#打开文件路径files = os.listdir("F:\\pointcloud\\DataSet\\GPCC_DataSet\\Cat3_Frame-Based\\Ford_01_原创 2020-09-18 20:05:48 · 2159 阅读 · 3 评论 -
利用python删除指定文件或文件夹
如果你跑了很多数据,需要删除一些文件或者文件夹,那么你可以使用python来帮忙。下面提供两个版本的代码,分别对应删除文件或者文件夹的版本。记录一下代码顺便分享一波。代码中有详细的解释:删除指定后缀的文件版本import osimport shutil# GetFilePath函数是用来递归遍历文件夹里面所有内容,包括文件夹和文件,将它们分开放到两个列表# 两个列表:fileList 是放文件,dirList 是放文件夹def GetFilePath(rootPath, fileList,原创 2020-08-14 16:47:58 · 3239 阅读 · 0 评论 -
python的格式化输出
在python中格式化输出字符,不足位数的在前面补零。方法一、类似C语言的格式化输出比如用4位表示一个整数数字,不足四位的在前面补零。i = 23stringI = "%04d" % iprint(stringI)输出0023方法二、python中的zfill方法n = "123"stringN = n.zfill(5)print(stringN)输出00123也可以给负数补零n = "-123"stringN = n.zfill(5)print(stringN)原创 2020-08-13 21:07:49 · 198 阅读 · 0 评论 -
python实现数据抓取--xlwt和xlrd库的使用
python实现数据抓取--xlwt和xlrd库的使用1.python打开一个文件2.python将数据写入excel中3.AVS_PCC抓取数据代码原创 2020-07-28 22:44:00 · 167 阅读 · 0 评论 -
python实现批处理--subprocess模块的使用
python实现批处理subprocess模块的使用python调用exe文件原创 2020-07-28 22:35:42 · 2553 阅读 · 3 评论