随笔分类 -  办公自动化

摘要:import calendar # 获取 2023 年 8 月份的日历 cal = calendar.monthcalendar(2023, 8) # 将日期转换为 YYYY:MM: 的形式并保存到列表中 dates = [] for week in cal: for day in week: if 阅读全文
posted @ 2023-09-04 15:33 徐俊112 阅读(114) 评论(0) 推荐(0) 编辑
摘要:获取微信接收的excel文件,并拷贝到新的文件夹中修改操作权限 def get_latest_file(): # 原文件路径 folder = r"C:\Users\网联云控\Documents\WeChat Files\wxid_z4cl3gy6kkvp22\FileStorage\File\{} 阅读全文
posted @ 2023-08-30 15:43 徐俊112 阅读(209) 评论(0) 推荐(0) 编辑
摘要:import os import sys from openpyxl import load_workbook class Excel: # 读取数据 def __init__(self, excel_path, sheet_name): """ :param excel_path: excel文件 阅读全文
posted @ 2023-07-31 17:57 徐俊112 阅读(36) 评论(0) 推荐(0) 编辑
摘要:import pandas as pd import os # 创建一个空的数据框列表 data_frames = [] # 获取当前脚本的目录路径 current_directory = os.getcwd() folder_path = os.path.join(current_director 阅读全文
posted @ 2023-07-31 09:44 徐俊112 阅读(441) 评论(0) 推荐(0) 编辑
摘要:import requestsimport openpyxl# 定义函数def Getlngat(address): url = 'https://restapi.amap.com/v3/geocode/geo' output = 'json' ak = '#########' add = addr 阅读全文
posted @ 2023-02-14 09:33 徐俊112 阅读(471) 评论(0) 推荐(0) 编辑
摘要:import json from urllib.request import urlopen from urllib.parse import quote import openpyxl # 定义函数 def Getlngat(address): url = 'http://api.map.baid 阅读全文
posted @ 2023-02-13 09:19 徐俊112 阅读(93) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示