Giter Site home page Giter Site logo

excel2lua's Introduction

excel2lua说明


使用依赖

  • python2.7+
  • python一个库xlrd, 已经作为git submodule引用了。
    cd xlrd
    git submodule init
    git submodule update

作用

  • 支持xls/xlsx的导出,视xlrd版本而定
  • 对于excel的结构定义,见示例中的excel/Dungeon.xls

思路

核心部分:

  • excel2lua_mod.py
    用于将某个excel中某个sheet转换为lua的配置table

  • excel2lua_final.py
    调用excel2lua_mod.py,传递一些参数。此模块可单独使用。

外围部分

  • get_xls_changelist.sh 通过svn的对比工具,查找出有变化的xls, 供增量生成配置
  • excel_cmd.sh 这个是用于查找某个xls文件它的生成配置的命令
  • rapid_do.sh/do_all.sh 主(控)逻辑脚本

后记

  • 因为当时写此脚本为临时需求,没考虑太多的结构方面东西,代码quick&dirty

excel2lua's People

Contributors

kevin1sme avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.