会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
帅胡
2023年3月21日
zipfile模块详解
摘要: 模块包含的类 'ZipExtFile', 'ZipFile', 'ZipInfo' 模块包含的方法 类方法zipfile.is_zipfile(filename) 判断文件是否是个有效的zipfile ZipFile属性 filelist ZipFile.infolist()方法等价 comment
阅读全文
posted @ 2023-03-21 23:25 帅胡
阅读(518)
评论(0)
推荐(0)
Python3中zipfile模块文件名乱码问题
摘要: 在zipfile.ZipFile中获得的filename有中日文则很大可能是乱码,这是因为 在zip标准中,对文件名的 encoding 用的不是 unicode,而可能是各种软件根据系统的默认字符集来采用(此为猜测),而zipfile中根据文件 flag 检测的时候,只支持 cp437 和 utf
阅读全文
posted @ 2023-03-21 22:36 帅胡
阅读(365)
评论(0)
推荐(0)
tkinter中使用thread
摘要: import tkinter as tk from threading import Thread import datetime import time class SampleApp(tk.Tk): def __init__(self): tk.Tk.__init__(self) # Make
阅读全文
posted @ 2023-03-21 11:16 帅胡
阅读(166)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告