当前位置: 首页 > news >正文

美容茌哪个网站做宣传好关于建设企业网站的请示

美容茌哪个网站做宣传好,关于建设企业网站的请示,scrm管理系统,网站要流量有什么用目录 安装依赖 代码 打包为可执行程序 如果你使用了Anaconda#xff0c;请先切换环境#xff01;#xff01;#xff01; 安装依赖 pip install tqdm aiofiles 代码 新建一个find.py文件#xff0c;将以下代码粘贴进去#xff1a; import os import datetime f…目录 安装依赖 代码  打包为可执行程序 如果你使用了Anaconda请先切换环境 安装依赖 pip install tqdm aiofiles 代码  新建一个find.py文件将以下代码粘贴进去 import os import datetime from concurrent.futures import ThreadPoolExecutor from tqdm import tqdmdef process_file(file_paths, year):count 0total_size 0for file_path in file_paths:try:file_time os.path.getmtime(file_path)if datetime.datetime.fromtimestamp(file_time).year year:total_size os.path.getsize(file_path)count 1except OSError as e:print(fError processing file {file_path}: {e})return count, total_sizedef find_files(target_dir, year, batch_size500):total_count 0total_size 0with ThreadPoolExecutor() as executor:futures []file_paths []with tqdm(desc正在收集文件, unit个) as progress:for root, dirs, files in os.walk(target_dir):for file in files:file_path os.path.join(root, file)file_paths.append(file_path)progress.update(1)if len(file_paths) batch_size:futures.append(executor.submit(process_file, file_paths, year))file_paths []# 添加剩余的 file_pathsfutures.append(executor.submit(process_file, file_paths, year))for f in tqdm(futures, descf处理任务每{batch_size}个文件为一个任务, unit个):count, size f.result()total_count counttotal_size sizereturn total_count, total_size# 获取用户输入 target_directory input(请输入目标目录: ) year int(input(请输入年份: ))file_count, total_size find_files(target_directory, year, batch_size1000)print(------------------------------------------------) print(f{year}年文件总数量: {file_count}) print(f{year}年文件总占用: {(total_size / (1024 * 1024)):.2f} M | {(total_size / (1024 * 1024 * 1024)):.2f} G) print(------------------------------------------------) os.system(pause)运行 python find.py 打包为可执行程序 安装pyinstaller pip install pyinstaller 然后运行以下命令在运行的目录中有一个dist文件夹可执行程序就在其中。 pyinstaller --onefile find.py 可执行程序已提供可自行下载 find.exe - 蓝奏云  点赞你的认可是我创作的动力 收藏你的青睐是我努力的方向 ✏️评论你的意见是我进步的财富
http://www.pierceye.com/news/378033/

相关文章:

  • 可以看网站的浏览器wordpress+博客+简书
  • 游戏源码网站免费网站模板有哪些内容
  • 江西网站优化广东网站设计有名的公司
  • wordpress整合dplayer关键词优化举例
  • wordpress怎么设置跳站外链接番禺网站建设培训学校
  • 怎样建立网站平台新网站应该怎么做
  • 根据颜色找网站济南做网站公司排名
  • 面对面视频 网站开发网络科技加我qq是干嘛
  • 如何登录网站制作平台百度旧版本
  • 广东营销型网站建设报价定制商品的app
  • 网站导航常用关键字电子商务网站设计内容
  • 建设vip网站相关视频wordpress 修改用户头像
  • 考百度指数 某个关键词在某个行业网站上的wordpress与Wix对比
  • 机器人网站建设规划书福州网站制作怎样
  • 自己创建一个网站需要多少钱2023最建议买10款手机
  • 寻找富阳网站建设国内个人网站欣赏
  • 企业自建站城市建设模拟游戏官方网站
  • 网站建设数据库类型建立网站信息发布登记制度
  • it培训机构都有哪些seo推广教程seo推广技巧
  • 龙岩网站开发较好的公司wordpress屏蔽首页
  • 有没有做美食的网站深圳网站建站公司
  • 学校网站建设需求分析调研表网站右侧信息跟随左侧菜单栏变化
  • 家乡网站建设策划案邢台哪里建网站
  • 网站建设实习收获青岛网上房地产网站
  • 简述电子政务网站设计的技术企业邮箱是什么类型的账户
  • 深圳网站建设公司元嘉定网站开发
  • 佛山外贸网站建设平台上传网站安装教程
  • c2c网站建设实例德国网站建设
  • 建网站支持设备是什么意思佛山中小企业网站建设
  • 网站建设与管理读后感宁德住房和城乡建设部网站