vn.py quick start 6 - develop the first quantitative strategy

The quick start series has reached Chapter 6, and we are finally going to touch the content of programming practice. The content in this tutorial assumes that you have a certain basic grasp of Python language development:   Understand Python data results Understand the concept of object-oriented programming Can use control statements t ...

Posted by hairulazami on Tue, 08 Mar 2022 11:01:22 +0100

Creating and using classes for python learning

1. Create Classes Create a dog class based on the puppy, and each instance will store the name and age, how to give each puppy the ability to eat and run: Parse as follows: 1.class Dog: In python, uppercase names refer to classes, and class definitions do not have parentheses; 2. The comments section describes the main functions of this cl ...

Posted by ocd on Wed, 09 Feb 2022 09:11:12 +0100