Function and object oriented of python
1 function
1.1 function basis
definition
def Function name():
Code 1
Code 2
...
call Function name ()Documentation for functions
def Function name():
""" Function description document """
View the documentation for the function
help(Function name)
1.2 scope of variable
local variable
The so-called local ...
Posted by OOP on Fri, 12 Nov 2021 14:23:33 -0800
stm32+TB6612 drive DC motor
Because the single chip microcomputer can not directly drive the motor, it is necessary to add a motor drive module between them. The L298N motor drive module was used in the previous article. Now we recommend a new motor drive module. It is much easier to use than L298N, and it takes up a small ...
Posted by Walle on Fri, 12 Nov 2021 13:57:31 -0800
Beginner programming, ideas are clear, but can't write the code?
The initial contact programming can be directly used. Instead of the large piles of books on the front floors, they may not be able to help you write code. If you don't say, they may directly persuade you to retreat.
First, look at the problem. It shows that you have ideas and can figure out all the problems. Then there is a very simple method ...
Posted by oceans on Fri, 12 Nov 2021 13:56:07 -0800
One-to-many relationship processing in Mybatis basic learning
Preface:
Hello, ladies and gentlemen, I'm running like a snail rz. Of course you can call me Snail Jun. I'm a beginner who has studied Java for more than half a year. At the same time, I have a great dream that I will become an excellent Java architect one day.
This Mybatis Basic Learning series is used to record the whole process of ...
Posted by ataylor20 on Fri, 12 Nov 2021 13:55:50 -0800
Java essay record Chapter 3: array
preface
When using an array, remember that the subscript 0 is the first Subscript 0 is the first Subscript 0 is the first!!! I've thought about this sentence for a long time, and I think it's best to put it at the beginning
This chapter is mainly about arrays. In actual use, if we want to declare a large number of data of the same data ...
Posted by rage2021 on Fri, 12 Nov 2021 13:45:15 -0800
C language from introduction to earth (Introduction) (detailed explanation of operators p1)
catalogue
1. Operator classification:
2. Arithmetic operators
3. Shift operator
3.1 shift left operator
3.2 shift right operator
4. Bitwise operator
5. Assignment operator
6. Monocular operator
6.1 introduction to monocular operators
6.2 sizeof and arrays
//I haven't finished yet!
1. Operator classification:
arithmetic ope ...
Posted by fgm on Fri, 12 Nov 2021 13:40:54 -0800
Detailed explanation of context package that beginners can understand: from introduction to mastery
prefaceToday, I want to share the context package with you. After a year of precipitation, I will start again and analyze it from the perspective of source code based on Go1.17.1. However, the difference this time is that I intend to start with the introduction, because most novice readers want to know how to use it first, and then they will fo ...
Posted by jkeppens on Fri, 12 Nov 2021 13:39:26 -0800
Cereal mall project (learning note 2)
Cereal mall project (learning note 1)
Cereal mall project (learning note 2)
Chapter II: initialization project
catalogue
Chapter II: initialization project
1, Initialize database
2, Introduction of Renren open source
1. Download Ren fast and Ren fast Vue
2. Introduce Ren fast in the backend
3. Introduce the front-end Ren fast Vue
4. T ...
Posted by lordshoa on Fri, 12 Nov 2021 13:22:10 -0800
Linux User & User Group Management
1. Users & User Groups
Linux is a multi-user and multi-task operating system. The Linux system supports multiple users to log on at the same time. Different users can perform different tasks within their permissions without affecting each other.
Corresponding relationships between users and user groups:
One-to-one: A user can exist in a ...
Posted by Takuma on Fri, 12 Nov 2021 13:18:45 -0800
Custom attribute access and dynamic attribute setting of Python classes
This article mainly introduces the methods of accessing some custom attributes of python classes and the dynamic attribute setting of classes, that is, python's built-in function setattr().
Custom attribute access
What are attributes? Are the following examples a and b attributes? No, they are global variables. An attribute is a member variab ...
Posted by alba on Fri, 12 Nov 2021 13:14:04 -0800