[英]Python. How to get formatting styles from xlsx file
Good afternoon.下午好。 I have a file... For example, in this file there are 4 identical sentences, but they have different formatting styles.
我有一个文件... 例如,在这个文件中有 4 个相同的句子,但它们具有不同的格式样式。
How can you parse this file and get the data starting with what letter the text formatting begins and what letter this formatting ends with?如何解析此文件并获取以文本格式开头的字母和格式结尾的字母开头的数据? And what kind of formatting (color, font size, etc.)
以及什么样的格式(颜色、字体大小等)
All this needs to be done in Python.所有这些都需要在 Python 中完成。
您可以查看openpyxl
库,其中有一个使用样式可能是您需要的部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.