From d0520f04c6106a697bac95a63fa2a80adaceb2e5 Mon Sep 17 00:00:00 2001 From: hongshaodalao <41366330+hongshaodalao@users.noreply.github.com> Date: Tue, 30 Jul 2019 11:36:04 +0800 Subject: [PATCH] Update go_file.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit go里面没有关键字float,因此将float改为float32 --- Tools/TableCode/go_file.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/TableCode/go_file.py b/Tools/TableCode/go_file.py index 9f23185..2558d95 100644 --- a/Tools/TableCode/go_file.py +++ b/Tools/TableCode/go_file.py @@ -16,6 +16,9 @@ def GenGoTableManagerFile(tableName, fieldsIndex, table): if fieldtype == "int[]": fieldtype = "[]int" + + if fieldtype == "float": + fieldtype = "float32" fieldName = table.cell(3, index).value fileContent += \