Files
playwrite/convert_excel_demo.py

24 lines
565 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
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()