解释 XLSX 文档中的特殊字符
我正在使用 xlsx Python 库读取 XLSX 文档,但某些列数据包含特殊字符,例如 _x000D_
。如何将其转换为原始形式?
I am using the xlsx Python library to read an XLSX document, but some column data contains special characters like _x000D_
. How can this be converted to its original form?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果
_x000D_
应该表示带有十六进制代码点的 unicode 字符,您可以使用正则表达式来查找它们,并使用回调函数将它们转换为适当的值。If
_x000D_
is supposed to represent a unicode character with a hex code point, you could use a regular expression expression to find them and a callback function to convert them to the appropriate value.