Sets and strings

Sets and strings aggregate 1. Recognition set ''' A collection is a container type data type. Take {} as the flag of the container. Multiple data in it are separated by commas: {data 1, data 2, data 3,...} Variable (support addition, deletion and modification); Unordered (subscript operation is not supported) Requirements for elements: 1 ...

Added by olko on Sat, 05 Mar 2022 00:59:17 +0200

Chapter V list

1, First acquaintance list 1. Understanding of lists A variable can store an element, while a list is a "big container", which can store n more elements. The program can easily operate these data as a whole. A list is equivalent to an array in other languages, and a list is equivalent to a schoolbag containing many "books" ...

Added by nthomp on Sat, 05 Mar 2022 00:24:30 +0200

Web page parsing tool

Web page parsing tool BS4 Beautiful soup is a Python library that can extract data from HTML or XML files. Its use is more simple and convenient than regular, and can often save us a lot of time. Official Chinese documents https://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html install pip install beautifulsoup4 Parser Parse ...

Added by DaveEverFade on Fri, 04 Mar 2022 23:06:36 +0200

Simple practice of logistic regression and record of problems encountered

Objective: to predict whether a college student can be admitted to the university according to the score. Methods: call the advanced optimization algorithm or write the gradient descent function (choose the learning rate and iteration times by yourself) Data: ex2data1 txt 1, Read in data. 1.1 INTRODUCTION Kit import numpy as np import pa ...

Added by fullyscintilla on Fri, 04 Mar 2022 21:59:56 +0200

django rest framework version, parser and source code analysis of python Django

1, rest framework version introduction In the previous article, we introduced three authentication functions of the rest framework, perform_ Authentication, permissions and throttles, which are inherited from the View method through APIView and reflected by the dispatch method through initialize_ The request method encapsulates a request(R ...

Added by Kano on Fri, 04 Mar 2022 20:58:08 +0200

Continuous integration interface automation - jmeter+ant+jenkins and HTML report extension

ant batch execute Jmeter 1, Environmental preparation 1. JDK environment: Java Downloads | Oracle 2. ANT environment: Apache Ant - Binary Distributions 3,Jmeter: Apache JMeter - Download Apache JMeter 4. Add ant-jmeter-1.1.1. To the extras directory of JMeter Copy the jar package to the lib directory under the ant installation directory 5 ...

Added by sunnyside on Fri, 04 Mar 2022 19:37:54 +0200

[Python] Flask+Gunicorn build a simple website

1. Install the flash third-party library pip3 install Flask 2. Create a flash application The project structure is shown in the figure above. Static is used to place static files, such as js files, css files and pictures. templates folder is used to place template files, namely html files. Import the flash third-party library in the proje ...

Added by pythian on Fri, 04 Mar 2022 16:08:20 +0200

Big data: visualization of Douban TV series crawler anti climbing agent IP, spark cleaning and flash framework

Full steps of Douban movie big data project 1. Douban reptile: When I started to write Douban TV series crawler, I thought it was very simple, but in practice, there was an IP sealing situation, which led to my distress for a long time, and now I finally wrote it No more nonsense, just go to the code: The run function is ...

Added by gregor171 on Fri, 04 Mar 2022 14:51:48 +0200

[learning OpenCV4] detailed explanation of watershed algorithm

The content shared in this article comes from the book "learning OpenCV 4: Python based algorithm practice", which is as follows: Chapter 1 OpenCV Quick start; Chapter 2 image reading and writing module imgcodecs; Chapter 3 core library module core; Chapter 4 image processing module imgproc(1) (a); Chapter 5 image processing module ...

Added by coverman on Fri, 04 Mar 2022 14:45:12 +0200

setuptools Library: build your own python package

A clear introduction to the basic usage of setuptools MANIFEST. Official explanation of in documents Root directory setup py, MANIFEST. in, README. You don't need to specify what to add to the package automatically. python setup.py clean --all clear the intermediate results of previous compilation (that is, the build directory). If not, modify ...

Added by l_evans on Fri, 04 Mar 2022 14:36:29 +0200