Nagios is an open source, free network monitoring tool that effectively monitors Windows, Linux and UNIX host status, network settings such as switch routers, printers, and more. Send mail or SMS alarm when the system or service status is abnormal
The previous period of time has been using Pycharm Write pandas program, for big data development, development is generally a step to take a step, pycharm not suitable. Online Recommended use Jupyter notebook, it is a web version of the editor,
It is inconvenient to use an error code to indicate whether an error occurred, because the function itself should return the normal result and the error code mixed together, causing the caller to use a lot of code to determine whether the error:
Let's learn the IF statement and enter the following code to make sure it works correctly.
People = cats = Dogs = If people Cats: print "Not many cats! The world is saved! " If people Dogs: print "The World is dry!" Dogs + = 5 If
Stringstrings are enclosed in "or", if there is ' or ' inside the string, you need to escape using \
>>> print ' i\ ' m ok. ' I ' m OK.
The escape character \ can escape many characters, such as \ n for newline, \ t for tabs, and the character \
First, the Urllib2 module in the Python Standard library provides most of the HTTP functionality you need, but its API is unfriendly. It was created for another era, another internet. It needs a huge amount of work, even covering a variety of
The Python integer object is stored in a different location, some of which are stored in a store, while others create space when used.
To say the reason for this sentence, you can look at the following code:
A = 5b = 5a is b # Truea = 500b = 500a
Requests is a Python HTTP client library, similar to URLLIB,URLLIB2, why use requests instead of URLLIB2? This is stated in the official documentation:
Python's standard library URLLIB2 provides most of the HTTP functionality needed, but the API
Urllib
Urllib module is a URL processing package for Python3
which
1, urllib.request mainly open and read the URLs
The main use of personal 1:
Open the corresponding URL:urllib.request.open (URL)
Use Urllib.request.build_opener ([handler, ...]) to
In a program, a variable is a name that makes it easier to remember.
Tip: Underscores are typically used to represent imaginary spaces in variable names. Make the variable name more readable.
Operation Result:
More variables and
This example describes how Python optimizes log output using logging combined with decorator mode. Share to everyone for your reference, as follows:
Python's built-in loging module is very easy to use and is ideal for the output of program run logs.
This paper analyzes the application of the ZIP () method in Python. Share to everyone for your reference, as follows:
Suppose you have a set set, you need to specify a unique ID for each element in the set, so that the group is built into a dict
The example of this article is to share the Python script monitoring Docker container method, for your reference, the specific content is as follows
Scripting Features:
1. Monitor CPU Usage
2. Monitor Memory usage Status
3. Monitor network
Prototype mode:The prototype instance specifies the kind of object created and creates a new object by copying the prototypes.
Prototype mode is essentially cloning objects, so in the case of complex object initialization, it is practical, can
Django offers many features for future developers: a proven standard library, an active user community, and all the benefits of the Python language. While other WEB frameworks claim to provide the same content, Django is unique in that it has
Python supports multithreading, primarily through the two modules of thread and threading. The thread module is a relatively low-level module, the threading module is the thread to do some packaging, can be more convenient to use.
Although Python's
You can configure Vim (including plug-ins) as a Python IDE by running the following two commands. Currently supports MAC and Ubuntu.
Curl-o Https://raw.githubusercontent.com/vince67/v7_config/master/vim.shbash vim.sh
Example
What did it
Crawler is really an interesting thing ah, before the crawler, with the URLLIB2, BeautifulSoup to achieve a simple crawler, Scrapy has also been achieved. If you want to learn a reptile better recently, make a record of it as much as possible. This
This article for you to share the Python Django batch import non-repeating data implementation code for your reference, the specific content is as follows
The procedure is as follows:
#coding: Utf-8 import os os.environ.setdefault ("Django_settings_
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service