chore: move scripts to tools directory
Move analyze_excel.py, excel_to_markdown.py, and locator_helper.py into the tools/ subdirectory to improve project organization.
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
"""
|
|
||||||
Excel 转换工具使用示例
|
|
||||||
"""
|
|
||||||
from utils.excel_converter import ExcelConverter
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
# 创建转换器(verbose=True 打印详细日志)
|
|
||||||
converter = ExcelConverter(verbose=True)
|
|
||||||
|
|
||||||
# 转换 Excel 文件
|
|
||||||
input_file = "data/离散备料计划打印模版-布莱迪.xlsx"
|
|
||||||
output_file = "data/离散备料计划打印模版-布莱迪_转换.xlsx"
|
|
||||||
|
|
||||||
# 执行转换
|
|
||||||
df = converter.convert(input_file, output_file)
|
|
||||||
|
|
||||||
print(f"\n转换完成!")
|
|
||||||
print(f"数据形状: {df.shape}")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
Reference in New Issue
Block a user