Getting started with Python zero Basics
6, Process control
6.1 program structure
When a computer solves a specific problem, there are three main situations: sequential execution of all statements, selective execution of partial statements and circular execution of partial statements. The three basic structures in corresponding programming are sequence structure, selection struc ...
Added by ronnimallouk on Fri, 21 Jan 2022 12:06:24 +0200
Basic syntax (variable + data type conversion + input() + operator + program structure)
Chapter I
I notes
① Single line note
Start with "#"
② Multiline comment
Start with three single / double quotes
③ Chinese coding statement notes
Add Chinese declaration comments at the beginning of the file to specify the encoding format of the source file
#coding:gbk
II operator
☝ Add -- "+“
☝ Minus - "-&qu ...
Added by mobtex on Fri, 21 Jan 2022 11:28:42 +0200
Opencv Python learning notes -- Fourier transform of image processing
Catalogue of series articles
FFT
Use OpenCV to Fourier transform the image, use the FFT function available in Numpy, and some applications of Fourier transform
Correlation function: cv.dft(), cv.idft() etc.
1. Theory
Fourier transform is used to analyze the frequency characteristics of various filters. For the image, two-dimensional di ...
Added by gtal3x on Fri, 21 Jan 2022 08:34:04 +0200
It's almost the new year. You won't have a girlfriend (boyfriend) yet. Ba, no, no, No. then it means that you deserve to have the code~
preface
Hi ~ Hello, everyone, this is the demon king!
I send articles ~ usually reptiles, but what
Reptiles look too much. It's bad for your health. Let's have some reality today!! It's almost the new year, and my family is urging me. I can't escape this year. Why can't I? The status quo is ba next year
Learn the confession code, install ...
Added by chrys on Fri, 21 Jan 2022 08:18:44 +0200
Module 3 - day13 - built in functions and Derivations
day13 built in functions and Derivations
Summary:
Anonymous functiongenerator Built in functionAdditional "derivation, which belongs to the knowledge of data type, and the internal high-level usage involves [generator] and [function]"
1. Anonymous function
Traditional functions (well-known functions)
def fuc():
print("This is ...
Added by obrienkev on Fri, 21 Jan 2022 06:33:11 +0200
Introduction to Python crawler: how to pick up Web pages in Python? What is the basic process
Basic process of Python crawler web page:First, select some carefully selected seed URL s.Put these URLs into the URL queue to be fetched.Read the URL of the queue to be crawled from the URL queue to be crawled, resolve DNS, obtain the IP of the host, download the web page corresponding to the URL and store it in the downloaded Web page library ...
Added by fred_m on Fri, 21 Jan 2022 00:44:06 +0200
Three switching modes in selenium & three waiting modes
preface
ui automatic testing is to simulate manual operation through code, and operate browser pages by clicking, dragging and inputting. Our commonly used web automatic testing tool is selenium; At the same time, in our daily operation, we need to create links, load pages, switch windows and other situations, but the execution of the code is ...
Added by aussie_clint on Fri, 21 Jan 2022 00:41:41 +0200
Lazy Gospel! One line of code to import all Python Libraries
Recently, when consulting some questions, some small partners found that many small partners did not know "opportunism" in the process of practical operation. That is the so-called "laziness". The laziness mentioned here is not the traditional laziness and trickery, but learning to "use tools". You should know that ...
Added by leon_nerd on Thu, 20 Jan 2022 22:59:44 +0200
python file operation
Basic operation of file
Open / close file The built-in function open can open a file under the specified path and return a file object There are two most commonly used parameters for open. The first parameter is the file name (absolute path or relative path), The second is the opening mode, 'r' /'w '/'a' /'b ', which means read (default) / ...
Added by gijs25 on Thu, 20 Jan 2022 21:55:15 +0200
selenium web page automatically logs in and clocks in
preface
In the front, I made a small program of automatic clock in, which can basically realize the tasks of checking in and checking out after work, and white whored CSDN server as the basis of data sending and receiving. While continuing to optimize functions, small pits in the use of selenium are solved.
Locate and switch frame (if ...
Added by chordsoflife on Thu, 20 Jan 2022 20:30:18 +0200