API - 常用工具箱

../_images/mytools.ico
mytools.Error
mytools.StringPatternError
mytools.MyEncoder
mytools.get_mac_address
mytools.get_hostname
mytools.get_ip_address
mytools.get_host_ip
mytools.get_current_function_name
mytools.Walk
mytools.time_me
mytools.get_timestamp
mytools.get_current_time
mytools.get_age
mytools.random_item
mytools.file_replace
mytools.read_excel
mytools.set_excel_style
mytools.write_excel
mytools.write_excel_sql
mytools.generate_dict
mytools.waitting

自定义异常

自定义字符串格式异常

MyEncoder 解决 json.dumps 不能序列化 datetime 类型的问题

获取Mac地址

获取主机名

获取IP地址

获取当前运行函数名

遍历目录进行批处理

程序时间性能分析

获取指定日期表示方式的时间戳或者当前时间戳

获取指定日期表示方式的当前时间

获取指定日期表示方式的年龄

列表随机元素

文件替换

读取excel

设置excel样式

写入excel

生成词典

显示等待中