python Basics

catalogue Process and thread Multi process os.fork (a fork system call provided by Unix/Linux operating system) multiprocessing (multi process module of cross platform version) Pool  Subprocess Interprocess communication Multithreading (data sharing) threading.Thread Lock Multi core CPU (due to the existence of Gil lock, cpython mu ...

Added by BigBadKev on Sat, 22 Jan 2022 18:13:41 +0200

Write a tool in Python and crack MySQL perfectly!! (recommended Collection)

Hello, I'm glacier~~ Recently, many friends asked me: Glacier, how do you feel you can do anything? Java, Python, big data, distribution, microservices, system architecture, operation and maintenance, penetration, how do you usually learn? I: personally, I think the best way to learn is to summarize problems in the usual work process, pay atte ...

Added by loudrake on Sat, 22 Jan 2022 18:06:51 +0200

Write a small forward rendezvous software in Python

Why write this software Friends engaged in measurement work often use the method of forward rendezvous for measurement, and the later data processing of forward rendezvous will involve complex calculation formulas, which is cumbersome, laborious and error prone. Why not write a user-oriented "fool" software in half an hour? The firs ...

Added by 7awaka on Sat, 22 Jan 2022 18:03:52 +0200

jxTMS usage example -- database query

To use this example, you need to go through the docker container. Please drop down first docker image of jxTMS Start the tms container according to the instructions and helloWorld Start trying. Query of jxTMS In the previous section, we demonstrated the definition and ORM operation of tables in the database. In this section, we mainly demonst ...

Added by deansaddigh on Sat, 22 Jan 2022 17:48:21 +0200

RFM analysis of e-commerce users (average value calculation center point)

Raw data set python code Edit with Jupiter notebook import pandas as pd import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] data = pd.read_excel(r'E:\a business\Data center station\E-commerce cases\Download source data\order.xlsx') data.info() data.sample(10) Operation results: It can be seen from the observation ...

Added by djbuddhi on Sat, 22 Jan 2022 16:15:02 +0200

Python series 47 built in module: hashlib

Introduction to hashlib Cryptography is a huge field. Generally speaking, encryption methods in this field can be divided into two categories: Symmetric encryption: the content can be inversely solved through the encrypted valueAsymmetric encryption: the content cannot be inversely solved through the encrypted value The hashlib module introd ...

Added by xuelun on Sat, 22 Jan 2022 14:53:08 +0200

[Android] zero basis to soaring Date & Time component

2.4.2 date & time component (I) Introduction to this section: This section brings you several controls for displaying time provided by Android. They are TextClock, AnalogClock and chrome. In addition, there is an outdated digital clock, so I won't explain it! OK, let's start this section! 1. Textclock TextClock is a control intro ...

Added by karapantass on Sat, 22 Jan 2022 12:53:42 +0200

python collaboration in housework

Why use coprocessing? We usually use multithreading or multiprocessing for concurrent programming in Python. For computational tasks, we usually use multiprocessing due to the existence of GIL, while for IO tasks, we can use thread scheduling to make the line give up GIL when executing IO tasks, so as to achieve apparent concurrency. Coprocess ...

Added by nadeemshafi9 on Sat, 22 Jan 2022 11:32:55 +0200

Automation artifact! Python reads ID card information in batches and writes it to Excel

Today, I share a practical skill to use Python to read ID card information in batches and write it into Excel. read Taking the ID card in the form of picture as an example, we use Baidu character recognition OCR to read information. Baidu interface provides a free quota, which is almost enough for daily use. Let's take a specific look at ho ...

Added by MikeTyler on Sat, 22 Jan 2022 11:31:05 +0200

Lesson 042: magic method: arithmetic operation | after class test questions and answers

Test questions: 0. From Python 2 After 2, classes and types are unified by converting BIF S such as int(), float(), str(), list(), tuple() into factory functions. What is the principle of the so-called factory function? A: the factory function is actually a class object. When you call them, you actually create a corresponding instance object. ...

Added by flashmonkey on Sat, 22 Jan 2022 11:18:34 +0200