Python handles a comprehensive summary of dates and times

Python's time processing module is widely used in daily use, but it is basically necessary to check the data when using it, which is still troublesome. Sort it out for convenient use in the future. catalogue Time related concepts Python time module Time formatting t PI DAR Other built-in functions of time module Properties contained ...

Posted by alfpalafox on Fri, 24 Sep 2021 20:51:19 -0700

python e-commerce data preprocessing

E-commerce Data Preprocessing Today we have preprocessed the business data, mainly processing 1.Extract order data for 2019 2.Handle data for business process inconsistencies (payment time is earlier than order time, payment time is longer than 30 minutes, order amount is less than 0, payment amount is less than 0) 3.Data with empty proces ...

Posted by bpgillett on Fri, 24 Sep 2021 09:24:37 -0700

day8 - dictionaries and collections

day8 - dictionaries and collections 1 dictionary related operations and methods 1. The dictionary does not support addition, mu lt iplication and >, <, > =<= 2. Dictionary support = == print({'a': 10, 'b': 20} == {'b': 20, 'a': 10}) 3.in and not in Key in dictionary ---- judge whether the specified key exists in the dictionar ...

Posted by BRAINDEATH on Fri, 24 Sep 2021 07:08:55 -0700

Maximum common string, maximum common subsequence, edit distance, myers and other algorithms

1 Preface The four algorithms are similar, and have the following similarities and differences 2 similarities and differences Take STR1 = "ABCDEF", STR2 = "zabcdze" as an example Similarities: 1. Get a target on a string; 2. The core of the algorithm is the idea of dynamic programming. difference: 1. The targets are d ...

Posted by dreado on Fri, 24 Sep 2021 06:04:22 -0700

Real time dynamic remote monitoring of Loss value based on Redis training model

preface When I am running a deep learning or neural network model training, we often need to run many epoch s. Of course, we are most concerned about the accuracy of the model and other parameters in the training, but before that, we need to go through a parameter adjustment process. The parameter adjustment process is often determined a ...

Posted by 7724 on Fri, 24 Sep 2021 04:53:21 -0700

python | bidirectional linked list

brief introduction From: Easy to understand and explain linked list One way linked list: Bidirectional linked list: Look at the picture and understand... Bidirectional linked list data structure From: Data structure - bidirectional linked list (Python Implementation) Data structure has always been a very important part in the programm ...

Posted by dey.souvik007 on Fri, 24 Sep 2021 02:12:52 -0700

September 23, 2021 opencv learning notes (image transformation, binarization, filter introduction and python Implementation)

color space Change color space (cv2.cvtColor()) There are more than 150 color space conversion methods in OpenCV. However, we only need to study the two most commonly used methods: BGR to GRAY and BGR to HSV. We use the cv.cvtColor(input_image, flag) function for color conversion, where flag determines the type of conversion. For BGR ...

Posted by mathieumg on Thu, 23 Sep 2021 16:56:24 -0700

Fundamentals of digital image processing (openCV)

openCV Window, mouse and keyboard operation Comprehensive example Generate a 500 * 500 pure black canvas, create a window, add mouse events to the window, and use the window to display images import cv2 import numpy as np # Generate 500 * 500 pure black canvas convas = np.zeros(shape=(512, 512, 3), dtype=np.uint8) # crea ...

Posted by eugene2008 on Thu, 23 Sep 2021 15:39:37 -0700

01 - Common Pytest commands

01 - Common Pytest commands 1.Run a single use case pytest -v test_day01.py::test_simple_case1 Operation effect: Administrator@PC-202102061358 MINGW64 /d/python_demo/pytest $ pytest -v test_day01.py::test_simple_case1 =========================================================================================== test session starts ========= ...

Posted by vishwavivek on Thu, 23 Sep 2021 10:21:17 -0700

[Python project practice] extract the pictures in the. docx file and save them to the specified folder

1, Demand analysis In order to meet the needs of users to quickly extract pictures from docx files to specified folders, the system should meet the following functions: When the user selects the docx file and specifies the image output path, all images in the docx file can be extracted.When the file selected by the user is not a docx file ...

Posted by cody44 on Thu, 23 Sep 2021 00:44:21 -0700