摘要:
使用JavaScript创建一个正则匹配函数 function 正则匹配某字符(targetCell) { const strIn = targetCell.Value2; const reg = /(187|180)\w*/; var result = strIn.match(reg); if ( 阅读全文
摘要:
xls格式批量转xlsx格式 import os import win32com.client as win32 import easygui as eg def save_as_xlsx(fname): excel = win32.DispatchEx('Excel.Application') w 阅读全文
摘要:
对一个20667行的xlsx文件进行遍历测试 import pandas as pd # 定义一个计算执行时间的函数作装饰器,传入参数为装饰的函数或方法 def print_execute_time(func): from time import time # 定义嵌套函数,用来打印出装饰的函数的执 阅读全文