2014-11-10 4 views

답변

0

한 시트에서 다른 시트로 스타일을 복사 할 수 있으려면 xlutils.copy을 사용할 수 있습니다.

이 질문은 중복 된 것으로 보입니다. 다음은 Preserving styles using python's xlrd,xlwt, and xlutils.copy

+0

입니다. 템플릿 파일이므로 xls입니다. 하지만 xlsx 있습니다. –

+0

openpyxl (https://openpyxl.readthedocs.org/en/latest/) 시도해보기 너무 '스타일 복사'도구를 제공합니다. 이것은 (https://openpyxl.readthedocs.org/en/latest/styles.html#copying-styles) –

+0

이 필요하며'xlrd'를 계속 사용하려면'xlrd' 버전을' 0.8.0'이다. 'pip install xlrd --upgrade'를 사용하십시오. –