import formatter #规定表格中的数据格式 def table_formatter(row, col): if col in [2]: return formatter.integer() elif col in [1, 3, 4, 5, 6, 7]: return formatter.decimal() elif col in [0]: return formatter.kdecimal() elif col in []: return formatter.angle() return None