随笔分类 - 办公自动化
摘要:import calendar # 获取 2023 年 8 月份的日历 cal = calendar.monthcalendar(2023, 8) # 将日期转换为 YYYY:MM: 的形式并保存到列表中 dates = [] for week in cal: for day in week: if
阅读全文
摘要:获取微信接收的excel文件,并拷贝到新的文件夹中修改操作权限 def get_latest_file(): # 原文件路径 folder = r"C:\Users\网联云控\Documents\WeChat Files\wxid_z4cl3gy6kkvp22\FileStorage\File\{}
阅读全文
摘要:import os import sys from openpyxl import load_workbook class Excel: # 读取数据 def __init__(self, excel_path, sheet_name): """ :param excel_path: excel文件
阅读全文
摘要:import pandas as pd import os # 创建一个空的数据框列表 data_frames = [] # 获取当前脚本的目录路径 current_directory = os.getcwd() folder_path = os.path.join(current_director
阅读全文
摘要:import requestsimport openpyxl# 定义函数def Getlngat(address): url = 'https://restapi.amap.com/v3/geocode/geo' output = 'json' ak = '#########' add = addr
阅读全文
摘要:import json from urllib.request import urlopen from urllib.parse import quote import openpyxl # 定义函数 def Getlngat(address): url = 'http://api.map.baid
阅读全文