自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 问答 (1)
  • 收藏
  • 关注

原创 20210-02-07 查看DBF的encoding

查看DBF的encodingimportchardetwithopen("D:\\pinwin\\wart_dif.DBF","rb")asfile:print(chardet.detect(file.read()))

2021-02-07 16:21:46 3022

原创 2021-02-07 Python 新建log文件并写入数据

新建log文件并写入数据data=open("log1.txt","w",encoding="utf-8")print( " successfully1st", file=data)

2021-02-07 16:17:47 590

原创 2021-02-07 移动或者复制文件

移动或者复制文件到对应的文件夹importosimportshutilfilePath_Original="D:\\20210205\\Original\\123"filePath_Target="D:\\20210205\\Target\\123"filePath_Keep="D:\\20210205\\Keep\\123"forfilenameinos.listdir(filePath_Original):shutil.copyfile(...

2021-02-07 16:11:15 114

原创 2021-02-07 Python DBF/记录要点

对DBF表的读写,dbf库,dbfread库的区别import dbf# dbf 库可以对DBF表中的内容做修改src_filename="v:\\wpp_lin.DBF"table=dbf.Table(filename=src_filename)table.open(mode=dbf.READ_WRITE) #以读写的方式打开dbf表for record in table: print(record) # 打印出为有序字典 if record["K...

2021-02-07 16:06:16 212

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除