24 lines
565 B
Python
24 lines
565 B
Python
"""
|
||
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()
|