Python LBM (lattice Boltzmann) program source code example analysis - flow around a cylinder
Learn LBM calculation method for the first time, find an excellent example of flow around a cylinder written in python language, add notes to each code in detail to help you summarize, and provide some help for beginners (all the codes are at the end of the article).
Put a result image first:
1. Import module, only two required
from numpy ...
Posted by ADLE on Tue, 01 Feb 2022 14:15:14 +0100
Day23 concurrent programming
day23 concurrent programming (Part 2)
Course objective: master the relevant knowledge points of multi process development and preliminarily understand the collaborative process.
Today's summary:
Multi process developmentData sharing between processesProcess lockProcess poolSynergetic process
1. Multi process development
Process is the sm ...
Posted by wiccanwoman1103 on Tue, 01 Feb 2022 12:16:35 +0100
Teach you how to debug programs
We often encounter all kinds of errors in writing strategies, which is very cumbersome, but it is an essential step in procedural trading.
In fact, there are only a few reasons and types of errors in JoinQuant operation.
python code format error, such as indentation and unequal usage - this can be basically solved by Baidu or google error pro ...
Posted by jawinn on Tue, 01 Feb 2022 11:29:19 +0100
Python staring robot can monitor the stock price in real time and notify you by email
preface
With its high development efficiency and powerful features, Python stands out among many programming languages and has become an analytical tool in the era of big data.
According to my understanding for many years, programming language is just an efficient tool to realize specific functions according to people's intention. The core de ...
Posted by supernova on Tue, 01 Feb 2022 09:59:03 +0100
What is the module in Python? Learn Python 3 by hand
introduce
In this section, we will learn about Python modules. Including the concept and import method of module, the concept and use of package, the introduction of third-party module, the use of command-line parameters, etc.
Knowledge points
Module importpackageIntroduction to default / third party moduleCommand line parameters
modular
S ...
Posted by kustomjs on Tue, 01 Feb 2022 09:58:48 +0100
python_ Download middleware of crawler 21 Scrapy framework
catalogue
Downloader Middleware
1, process_request(self, request, spider)
2, process_response(self, request, response, spider)
3, Random request header Middleware
setting.py
middlewares.py
httpbin.py
4, ip proxy pool Middleware
1. Purchasing agent
2. Using ip proxy pool
3. Exclusive agent pool
Downloader Middleware
Downloader ...
Posted by Tjorriemorrie on Tue, 01 Feb 2022 09:16:35 +0100
Easy to understand -- Mybaties entry code is a must for farmers to avoid pits
Mybatis actual combat
Tip: you can add the directories of all articles in the series here. You need to add the directories manually For example: the first chapter is the use of pandas, an introduction to Python machine learning
Tip: after writing the article, the directory can be generated automatically. For how to generate it, please refer ...
Posted by crazylegseddie on Tue, 01 Feb 2022 08:56:17 +0100
Scratch + recruitment website crawler notes
Scratch + recruitment website crawler notes
First look at the website to climb: https://sou.zhaopin.com/?jl=719&kw=%E8%8D%AF%E7%89%A9
Objective: to obtain the time, region, city, company, education requirements, experience requirements, salary level and other information of each city
Check the source code. The source code can be extrac ...
Posted by Zup on Tue, 01 Feb 2022 07:01:52 +0100
Python note4 variable
Variable
Tensor is a perfect component in PyTorch, but building neural network is far from enough. We need tensor that can build calculation graph, which is variable. Variable is the encapsulation of tensor. The operation is the same as that of tensor, but each Variabel has three attributes, and the tensor itself in variable data, correspo ...
Posted by BillyT on Tue, 01 Feb 2022 06:37:45 +0100
OpenCV can learn like this! The road to God will not be far
12. Image smoothing
12.1 objectives
Learn: - blur images with various low-pass filters - apply custom filters to images (2D convolution)
12.2 # 2D convolution (image filtering)
Like the one-dimensional signal, various low-pass filters (LPF) and high pass filters (HPF) can also be used to filter the image. LPF helps to eliminate noise and blu ...
Posted by freedmania on Tue, 01 Feb 2022 05:34:17 +0100