Coder Social home page Coder Social logo

python-learn's Introduction

1.共有接口和作业所述相同
  debug_print: 用于测试打印的
2.私有方法包括了
	a.__next_token(self)
	  解析lua table string, 并转换成 python的dict或list
	  按作业要求检查了key是否是string或int,value是否为table, nil, int, string, boolean
	  其子方法包含了__parse_white(self):解析空格,回车等;__parse_comments(self): 解析注释;
			__parse_luatbl(self): 解析table对象; __parse_bracket(self):解析[]; __parse_string(self):解析字符串; __parse_num(self):解析数值
	  
	b. __dump_parse(self)
       成员转lua table,解析dict
	   其子方法包含了__dump_parse_string(self, to_parse_str):解析字符串;__dump_parse_dict(self, to_parse_dict):解析字典;
	   ____dump_parse_list(self, to_parse_arr):解析list;__dump_parse_other(self, value):解析boolean,none,num等类型 
	   
    c. __save_file(self, f, s), __read_file(self, f)
		存取文件
	
	e. __deep_copy(self, input_dict)
		拷贝字典,取出不合法key
	  

python-learn's People

Contributors

zoominhao avatar

Watchers

James Cloos avatar 孙巍 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.