python object-oriented advanced programming using metaclasses
Using metaclasses
type()
The biggest difference between dynamic and static languages is the definition of functions and classes, which is not defined at compile time, but created dynamically at run time.
For example, if we want to define a Hello class, we write a hello.py module:
class Hello(object): ...
Added by trube on Thu, 25 Jul 2019 13:20:30 +0300
Stage 12 - Reptile 02: [request; data extraction (regular, Beautiful Soup, xpath)]
Articles Catalogue
1. URLError
2. Use of request Libraries
2.1. Basic Introduction
2.2. get request
2.3. post request
2.4. Custom request header
2.5. Setting timeout time
2.6. Proxy access
2.7. session automatically saves cookies
2.8. ssl verification
2.9. request for information
3. Data extraction ...
Added by Dimwhit on Wed, 24 Jul 2019 12:58:14 +0300
[Python] Scapy of University Data Grabbing for College Entrance Examination
1. College Entrance Examination School College Data - Write in front
Finally, scrapy crawler framework is written, which can be said to be the highest rate of emergence in the python crawler framework, we will focus on its use rules next.
Installation process Baidu itself, you can find more than three ...
Added by mathewvp on Wed, 24 Jul 2019 12:07:51 +0300
The Principle of Nodejs Modularization
I. Preface
The application of node is composed of modules. Node follows the module specification of commonjs, which is used to isolate the scope of each module and make each module execute in its own namespace.
The main contents of commonjs are as follows:
Modules must export external variables or interfaces through module.exports, and import t ...
Added by jonshutt on Wed, 24 Jul 2019 07:10:27 +0300
Ten new features of HTML 5
Ten new features of HTML 5
(1) Semantic tags (Semantic tags provide better page structure for pages).
Semantic tags for HTML5 include:
<section> - Represents a paragraph or section in a document;
Nav > - Used to build navigation;
<article> - Represents integrated content in documents, pages, applications or websites;
<a ...
Added by aliahmad on Wed, 24 Jul 2019 06:40:21 +0300
Talking about java annotations <the most easy-to-understand annotations>
Foreword: The meaning of Annotation in Chinese.
Java annotations are used to provide metadata for Java code.
Metadata refers to the data used to describe data, which, in general, describes the relationship between codes or the internal relationship between codes and other resources (such as database tables). In some technical frameworks, such ...
Added by jamkelvl on Wed, 24 Jul 2019 06:00:22 +0300
LINQ Path: LINQ Extension
Original Link: http://www.cnblogs.com/jellochen/p/the-extension-of-linq.html
This article describes LINQ extensions in three ways: extended query operators, custom query operators, and simple simulation of LINQ to SQL.
1. Extended Query ...
Added by iamthebugman on Tue, 23 Jul 2019 19:28:42 +0300
Configuration of webpack from 0 to 1
Configuration of webpack from 0 to 1 (1)
Configuration of webpack from 0 to 1 (2)
Configuration of webpack from 0 to 1 (3)
Configuration of webpack from 0 to 1 (4)
Configuration of webpack from 0 to 1 (V)
Configuration of webpack from 0 to 1 (6)
Next, the configuration of webpack.prod.config.js ...
Added by BLaZuRE on Tue, 23 Jul 2019 13:15:17 +0300
Spring MVC -- exception handling
Spring MVC provides us with a unified exception handling mechanism in the following four ways. It's important to note that if we want to use a unified exception handling mechanism, then we don't have to try the exception that needs unified processing. catch... Instead, it is handled uniformly by excepti ...
Added by DragonHighLord on Tue, 23 Jul 2019 12:31:34 +0300
SpringBoot configuration file
Configuration File Loading
SpringBoot loads the configuration file application.properties (or application.yml) by default from the following locations:
A /config subdirectory of the current directory
The current directory
A classpath /config package
The classpath root
If the name of the configurati ...
Added by Vaclavious on Tue, 23 Jul 2019 12:25:47 +0300