Python Classes

“Class” is a template, and the template packages many “functions” for use. This post introduces the members of Python classes, member modifiers, and the special members of classes. Class members The members of a class can roughly be divided into three categories: fields, methods and properties Note: among all members, only the content of ordinary fields is stored in objects, that is, however many objects are created from this class, there will be that many ordinary fields in memory. The other members are all stored in the class, that is, no matter how many objects there are, only one copy is created in memory. ...

August 20, 2017 · 9 min · Simplestory

Python, Object Oriented

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Object Oriented Programming (OOP) requires “classes” and “objects” to implement, so object-oriented programming is the use of “classes” and “objects”. Brief introduction Procedure oriented: Write code top-down according to the program logic. Functional: Encapsulate the code for some functionality into functions, and afterwards there is no need to write it again — just call the function. This generally suits scenarios where the functions are independent and share no data. ...

August 10, 2017 · 5 min · Simplestory

A Basic Git Tutorial

Git is an extremely good distributed version control system. The system can record every change to a user’s files and also has powerful team collaboration capabilities: everyone can commit changes to the text without worrying about overwriting the operations of others. Github is furthermore a software source code hosting service version-controlled with Git. As of 2015, Github had more than nine million registered users and 21.1 million repositories. Github has become the largest code hosting website and open source community in the world. ...

July 4, 2017 · 13 min · Simplestory