摘要: https://docs.microsoft.com/zh-cn/office/vba/api/ := 内部子参数赋值 阅读全文
posted @ 2021-08-27 18:18 在路上的羊咩 阅读(478) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 14:28 在路上的羊咩 阅读(23) 评论(0) 推荐(0)
摘要: Dir[(pathname[, attributes])] Dir 会返回匹配 pathname 的第一个文件名。若想得到其它匹配 pathname 的文件名,再一次调用 Dir,且不要使用参数。如果已没有合乎条件的文件,则 Dir 会返回一个零长度字符串 ("")。一旦返回值为零长度字符串,并要再 阅读全文
posted @ 2021-08-04 10:54 在路上的羊咩 阅读(412) 评论(0) 推荐(0)
摘要: #参考网站 https://pandas.pydata.org/pandas-docs/stable/ #加载pandas库 import pandas as pd #创建表格-pd.DataFrame #df = pd.DataFrame({行表头1:[列数据1],行表头2:[列数据2]...}) 阅读全文
posted @ 2021-07-15 23:48 在路上的羊咩 阅读(70) 评论(0) 推荐(0)
摘要: Error: EPERM: operation not permitted, mkdir"xxx" 原因 : 没有权限 (不允许操作) 解决办法:以管理员身份运行CMD 阅读全文
posted @ 2021-07-13 23:24 在路上的羊咩 阅读(25) 评论(0) 推荐(0)
摘要: import tkinter as tk from tkinter import filedialog #只想显示对话框,添加这两行代码 root = tk.Tk() root.withdraw() #选择文件夹 返回文件夹路径 folderPath = filedialog.askdirector 阅读全文
posted @ 2021-07-09 15:13 在路上的羊咩 阅读(1802) 评论(0) 推荐(0)
摘要: import time start = time.process_time() 需要运行的代码 end = time.process_time() print("运行时间为%fs" %(end-start)) 阅读全文
posted @ 2021-06-21 15:16 在路上的羊咩 阅读(395) 评论(0) 推荐(0)
摘要: 参考网站 https://docs.xlwings.org/en/stable/index.html #创建一个新的Excel文件 wb = xw.Book() 或 wb = xw.books.add() #连接一个在当前目录的Excel文件 wb = xw.Book('FileName.xlsx' 阅读全文
posted @ 2021-06-01 22:44 在路上的羊咩 阅读(1102) 评论(0) 推荐(0)