博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python 操作xls
阅读量:6857 次
发布时间:2019-06-26

本文共 960 字,大约阅读时间需要 3 分钟。

hot3.png

错误1:

*** formula/tFunc unknown FuncID:186

错误2:

Python XLRD Error : formula/tFunc unknown FuncID:186

解决办法:

For now I just wanted to make sure the xlrd read fine. I hacked my xlrd package so that it loads.

I don't gaurentee the correctness of the output.

Just add the following line in formula.py of your pythonlibs/xlrd package.

Around line 240 where each number is map to a function create a hacked function here. I've inserted 'HACKED' in there. I don't understand exactly what's going on.

-- added the line that starts with 186:

184: ('FACT', 1, 1, 0x02, 1, 'V', 'V'), 186: ('HACKED', 1, 1, 0x02, 1, 'V', 'V'), 189: ('DPRODUCT', 3, 3, 0x02, 3, 'V', 'RRR'),

Here is the discussion by xlrd group. Essentially, this is a complicated problem that can't be resolved. :)


1,找到formula.py文件

    我的是这里:

    C:\Users\Name\Envs\tcweb27\Lib\site-packages

2,186行左右,在文字184和文字189中间加插入一行

        186: ('HACKED', 1, 1, 0x02, 1, 'V', 'V'),

3,运行程序


转载于:https://my.oschina.net/vhacker/blog/540319

你可能感兴趣的文章
负载均衡之lvs
查看>>
C#之类与对象知识点
查看>>
斯坦福大学公开课机器学习:Neural network-model representation(神经网络模型及神经单元的理解)...
查看>>
七、集成swagger2
查看>>
Python(面向对象5——高级)
查看>>
chocolatey使用
查看>>
【转】iOS高级向的十道面试问题
查看>>
昂贵的聘礼 poj 1062 Dijkstra
查看>>
Hadoop HA的搭建
查看>>
JavaScript实现搜索框效果
查看>>
搭建nginx流媒体服务器(支持HLS)
查看>>
struts2上传文件大小受限问题
查看>>
dao使用JdbcTemplate(注入过程)视频学习
查看>>
无刷新URL 更新
查看>>
狮入羊口
查看>>
HDU 1421 搬寝室[DP]
查看>>
二层设备与三层设备的区别--总结
查看>>
ZOJ 3829 Known Notation(字符串处理 数学 牡丹江现场赛)
查看>>
JS操作css样式用法
查看>>
怎样使用 CCache 进行 cocos2d-x 编译加速
查看>>