Python object oriented programming
01. Basic theory
1, Concept of object
1. Everything is an object
2. The object is a specific object
The attributes of ownership, the behavior of ownership, and the scattered are encapsulated into a whole. For example: Wang Xiaoer (attribute: name, age, height... Behavior: walking, eating, herding sheep...)
3. The embodiment of objects in p ...
Posted by tpl41803 on Mon, 24 Jan 2022 15:14:53 +0100
Do a guessing game in Python (Introduction)
Do a guessing game in Python (Introduction)
preface:
Hello, everyone. I'm sunset sampan. Because time is a little tight recently, I'll make a small program first. Thank you for your support. Due to your limited ability, you are welcome to correct the error.
My code is divided into two stages. The second stage is the perfect version of the ...
Posted by chris1 on Mon, 24 Jan 2022 14:53:38 +0100
[code writing Spring Festival couplets] in 2022, show me the Spring Festival couplets I wrote in Python code
Introduction: now many people, most of them are only in rough writing, and they don't know how to write with brush. But the yearning for a better life is no less than that of literati. Here programmers write beautiful Spring Festival couplets with the help of code. Now, let's show you how to write Spring Festival couplets in Python.
1. Env ...
Posted by gaspower on Mon, 24 Jan 2022 14:03:40 +0100
What are the common basics of Python? 0 basic common knowledge summary
python reserved word
Reserved words are keywords, and we cannot use them as any identifier name. Python's standard library provides a keyword module, which can output all keywords of the current version:
>>> import keyword
>>> keyword.kwlist
['False', 'None', 'True', '__peg_parser__', 'and', 'as', 'assert', 'async', 'await', ...
Posted by mobile target on Mon, 24 Jan 2022 08:15:25 +0100
Basic Python learning 1
python learning
range() function
range(5) -> 0,1,2,3,4 range(5,9) -> 5,6,7,8 Range (0,10,3) - > 0, 3, 6, 9: step size is 3
list
In memory, a sequence is a continuous memory space used to store multiple values. An object contains three parts: memory address id, data type type and value. The id of the object is stored in the sequence ...
Posted by Matt Parsons on Mon, 24 Jan 2022 07:58:56 +0100
Morphological operations using Python and OpenCV
This blog will introduce how to use Python and OpenCV to apply morphological operations. include:
Corrosion (Erosion)ExpansionOpeningClosingMorphological gradientBlack hatTop hat (also called "White hat")
Morphological operation is an image processing transformation applied to gray or binary images. These operations require a st ...
Posted by daredevil14 on Mon, 24 Jan 2022 07:50:34 +0100
Automatic generation system of oral arithmetic in python (GUI interface programming)
preface:
Thank you, brother Li. It's really strong. I'll give you a compliment
1 GUI interface programming
1.1 problem description Topic selection: oral arithmetic question generation system Design GUI interface to realize oral arithmetic problem generation system, including but not limited to the following functions. (1) Oral arithmeti ...
Posted by mgason on Mon, 24 Jan 2022 07:47:22 +0100
After learning these image processing, I took it to my girlfriend to fix the picture
✨✨✨
Thank you for opening Xiaobai's article
"I hope you have made a little progress today and come closer to a better life!" 🌈
catalogue
🚀 Previous review
🍉 Foreword
🍋 Installation of Pilot Library
🌟 Filter for image processing
🌻 Image module built-in functions and properties
🌻 ImageFilter module
🌻 Small e ...
Posted by stravanato on Mon, 24 Jan 2022 07:43:35 +0100
Illiterate Python entry diary: on the 23rd day, encapsulate a custom crawler class to perform daily collection
After more than a week of learning and trying, I believe everyone is familiar with the syntax, structure, and some basic packages and uses of python. Now we are officially ready to start collecting, but there is a big problem. Just like when collecting the American case station before, we have to write several lines of instructions for each col ...
Posted by sparc-e on Mon, 24 Jan 2022 07:40:31 +0100
Introduction to machine learning for programmers - common skills in the training process
Introduction to machine learning for programmers (IV) - common skills in the training process
This article will focus on some common skills in machine learning training using pytorch. Mastering them can make you get twice the result with half the effort.
Most of the codes used will be based on the last example in the previous article, that is ...
Posted by PDXDesigner on Mon, 24 Jan 2022 07:22:40 +0100