Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于转换excel文件 #55

Open
zggg111 opened this issue Mar 30, 2022 · 1 comment
Open

关于转换excel文件 #55

zggg111 opened this issue Mar 30, 2022 · 1 comment

Comments

@zggg111
Copy link

zggg111 commented Mar 30, 2022

有大佬知道怎么转换成excel么。。

@jh11303
Copy link

jh11303 commented Mar 8, 2024

image

img_v3_028p_3997d975-116a-4948-bf5d-0386c709906g

def csv_to_xlsx_pd(csv_file, version):
    xlsx = pd.read_csv(csv_file, encoding='ANSI')
    xlsx.to_excel(csv_file.rstrip('csv')+'xls', sheet_name=version, index=False)

    return csv_file.rstrip('csv')+'xls'

可以在.../xmind2testcase/zentao.py里面加上转excel的逻辑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants