The realization of moving average filter in hand-held teaching series

[introduction]: in the previous article about IIR design, some friends are still reading it. Although I don't know how the officials feel, I think there is always a reward to read, so I decided to continue this series. This article talks about average filter, which is very easy at first glance. But I don't think some of the key points are clear ...

Posted by embtech on Sat, 16 May 2020 23:08:17 -0700

LXC WEB management tool of container technology LXC WEB Panel

In the previous blog post, I mainly talked about the simple management of lxc container on Linux. For a review, please refer to https://www.cnblogs.com/qiuhom-1874/p/12901493.html Today we will introduce lxc's image management tool, LXC WEB Panel; Project download address: https://github.com/lxc-webpanel/LXC-Web-Panel.git; 1. Install Python fl ...

Posted by ki on Sat, 16 May 2020 22:56:33 -0700

Dealing with Excel table cell format setting with OpenPyXL in Python

Official documents: http://openpyxl.readthedocs.io/en/default/ OpenPyXL Library -- cell style settings Cell style control, dependent on openpyxl.style Package, which defines the objects required by the style and introduces the style related: from openpyxl.styles import PatternFill, Font, Alignment, Border, Side Border border Side border Patter ...

Posted by Petty_Crim on Sat, 16 May 2020 00:23:15 -0700

General introduction to common data structure of python

Common data structures 1, String (string) 1. Basic use Create string # Create string str1 = str("lucky is a good man") # The basic type string will automatically change to string object type when used str1 = 'lucky is a nice man' operation # String operation str3 = "lucky is a cool man" str4 = "lucky is a handsome man" # String addition (s ...

Posted by OLM3CA on Thu, 14 May 2020 23:28:11 -0700

python string type bytes type byte array type

1, Python 3 makes a distinction between text and binary data. Text is Unicode encoded, str type, for display. The binary type is the bytes type, which is used for storage and transmission. Bytes is a sequence of bytes, and str is a sequence of Unicode. str type: 1 >>> s = u'Hello' 2 >>> s 3 'Hello' 4 >>> type(s) 5 &l ...

Posted by expostfacto on Thu, 14 May 2020 09:48:49 -0700

python generator

1, Generator definition By generating expressions from lists, we can create a list directly. However, due to the memory limitation, the list capacity must be limited. So, if list elements can be calculated according to some algorithm, can we continuously calculate the following elements in the process of circulation? This saves a lot of space b ...

Posted by cirko on Thu, 14 May 2020 08:39:56 -0700

Behavior pattern: observer pattern

Behavior mode: Observer mode: Also known as: event subscriber, Listener, event subscriber, Listener, Observer intention The observer pattern is a behavioral design pattern that allows you to define a subscription mechanism, Multiple "watch" other objects of an object can be notified when an object event occurs. Core: the observed and ...

Posted by tolputt-craig on Thu, 14 May 2020 07:13:25 -0700

If you want to do data analysis, suggest collecting, Python data visualization diagram (with code)

preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. 1. Tree view The tree view combines similar points according to a given distance measure, and o ...

Posted by fellixombc on Thu, 14 May 2020 02:53:04 -0700

First crawler and test

1, Improve the game procedures and test the game procedures. Change the end of the code slightly. If the code is correct, run it. Otherwise, output Error. from random import random #Printer introduction def printIntro(): print("19 Deng Ruoyan, No. 23, Xinji class 2") print("This program simulates two players A and B Table tennis comp ...

Posted by Deivas on Wed, 13 May 2020 10:27:12 -0700

python Decorator

1, Decorator definition The way to dynamically add functionality during code execution is called a Decorator. In essence, Decorator is a higher-order function of return function. 1 >>> def log(func): 2 ... def wrapper(*args, **kw): 3 ... print('call %s:' % func.__name__) 4 ... return func(*args, **kw) 5 ... ...

Posted by cape on Wed, 13 May 2020 09:04:20 -0700