python xlrd 读取Excel #N/A #NAME?

xlrd读取excel
0x00: '#NULL!',  # Intersection of two cell ranges is empty(读出0)
0x07: '#DIV/0!', # Division by zero(读出7)
0x0F: '#VALUE!', # Wrong type of operand(读出15)
0x17: '#REF!',   # Illegal or deleted cell reference(读出23)
0x1D: '#NAME?',  # Wrong function or range name(读出29)
0x24: '#NUM!',   # Value range overflow(读出36)
0x2A: '#N/A',    # Argument or function not available(读出42)

参考:xlrd Excel脚本转换&#dquo; #N / A”到42 - 或代码xlrd Excel脚本转换&#dquo; #N / A”到42 - 我有一个脚本使用xlrd模块从excel电子表格中提取数据,特别是row_values()方法。它似乎做得很好,除了之前的VLookups已经自动生成“#N / A”,在这种情况下,xlrd将“#N / A”作为整数42。我看了一下字符串格式化方法...https://www.orcode.com/question/1236650_k50194.html

猜你喜欢

转载自blog.csdn.net/amberom/article/details/120312711
今日推荐