Python automation operation and maintenance practice: collecting data from Linux system

Use Linux commands to view data about the current system status and health. However, a single Linux command and application can only obtain one aspect of system data. We need to use the Python module to feed these details back to the administrator and generate a useful system report at the same time. ...

Added by Simon Mayer on Fri, 05 Jun 2020 07:12:29 +0300

Python foundation-15 module package library

15. Module package library 15.1 basic concepts                      . To solve this problem, we will split it and put similar functions in the same file. Each file contains relatively little code. In Python, a. py file is called a module The ...

Added by maest on Sun, 31 May 2020 16:39:12 +0300

Data type -- List

List concept List is the most frequently used data type in Python. List can complete the data structure implementation of most collection classes.The list is identified with "[]". python is the most common composite data type, which supports characters, numbers, strings and even lists (so-called nesting).The value division in the list ...

Added by Tatara on Sun, 31 May 2020 15:02:17 +0300

An interpretation of Python decorator

Copyright notice: This is the original article of Colin Cai, welcome to post. If you want to transfer, you must indicate the original website   http://www.cnblogs.com/Colin-Cai/p/12977127.html Author: Windows QQ / wechat: 6679072   E-mail: 6679072@qq.com In theory, function is the first class function language, which can use function ...

Added by William on Sun, 31 May 2020 10:45:35 +0300

Multithreaded and Thread Locks

The threading module is provided in Python for multithreaded operations. Multithreaded Threads are the smallest unit of work in an application. Multithreading is a reality in two ways: Method 1: The construction method that will be executed passed to Thread as a parameter (similar to multiprocess) t = threading.Thread(target=action, arg ...

Added by pages on Fri, 29 May 2020 19:34:54 +0300

8. Three times class (December 13) 15.1 multithreaded instance 15.2 multithreaded lock

Eight three classes (December 13) 15.1 multithreading instance Python provides the threading module to operate on multiple threads, Multithreaded instance Threads are the smallest unit of work in an application. Multithreading is a reality in two ways: Method 1: pass the method to be executed as a parameter to the ...

Added by aquila125 on Fri, 29 May 2020 19:03:36 +0300

Python basic-10 loop statement

10. Loop statement    for loop statements, Python only provides while and for, not for...each/do...while/while...do, etc. like other programming languages. 10.1 while cycle The basic format of   while in Python is as follows: while condition: doSomething The    example code is as follows: startNum,endNum=0,5 while ...

Added by hd_webdev on Wed, 27 May 2020 16:09:03 +0300

Learning C + + DLL injection and interprocess communication

I always think that learning c + + is too complex, and there are many types in it, which are too many to distinguish at all. However, most of the online materials are c + +, and some problems are not solved perfectly with other methods (can be used in c, java, python) Then I decided to do it. Because I had to do c + +, I had to do VC + +, and ...

Added by Virii on Wed, 27 May 2020 07:19:14 +0300

Password RSA encryption of iqiyi login implemented by python

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. Add Penguin Group 695185429 and you can get it for free. All the information is in the group f ...

Added by daniellynn2000 on Tue, 26 May 2020 18:18:13 +0300

python crawls the data of the network and visualizes it

Crawling the data information about python position in the pull net, and storing the crawling data into various csv files, then cleaning the data of the relevant fields in the csv file, and making further analysis on the data visualization, including histogram display, histogram display, word cloud display, etc. according to the visualization d ...

Added by Vizor on Sun, 24 May 2020 07:37:16 +0300