Beautifulsoup4 and PyQuery & Thread | Thread Pool
Beautifulsoup4
It is an HTML or XML parsing library of python, which can be used to easily extract data from web pages.
Dependent device:
python standard library "html.parser"
Use: BeautofulSoup(markup, "html.parser")
Advantages: Python's built-in standard library; moderate executi ...
Added by adamlacombe on Fri, 04 Oct 2019 06:22:32 +0300
Spring 5 Source Resolution 2-register Method Register Configuration Class
The last time I talked about this() method, let's look at register (annotated Classes); method.
// New Annotation Config Application Context (AppConfig. class); source code
public AnnotationConfigApplicationContext(Class<?>... annotatedClasses) {
//Call the default parameterless constructor, which has a lot of initialization logic
...
Added by harsh00008 on Fri, 04 Oct 2019 04:21:47 +0300
Python's locals() function
Links to the original text: https://www.jianshu.com/u/8f2987e2f9fb
Python's locals() function returns all local variables of the current location in dict type.
Sample code:
'''
//Nobody answered the question? Editor created a Python learning ...
Added by caster001 on Thu, 03 Oct 2019 11:34:05 +0300
Java self-learning-interface and inheritance super
Java's super keyword
Step 1: Prepare a parent class that explicitly provides a parametric constructor
Prepare the parent class that explicitly provides a parametric-free constructor
When instantiating a Hero object, its constructor prints
"Hero's Construction Method“
package charactor;
import property.Item;
public class Hero {
...
Added by vmarellano on Thu, 03 Oct 2019 09:33:54 +0300
Limited size, type judgment, pixel judgment for uploading pictures
input tags are often used in projects to upload files, which are usually picture files. Pictures have many formats. We only need several of them. We need to validate the files uploaded by users. There is a new attribute in HTML5: accept file type restriction. But usually we use javascript or jQuery t ...
Added by z1haze on Thu, 03 Oct 2019 07:27:24 +0300
c#Winform Custom Control - Pool (Industry)
premise
It's been 7 or 8 years, and I've always wanted to make a beautiful set of custom controls, so I've got this series of articles.
GitHub: https://github.com/kwwwvagaa/NetWinformControl
Code cloud: https://gitee.com/kwwwvagaa/net_winform_custom_control.git
If you think it's OK, please click ...
Added by crseader on Wed, 02 Oct 2019 19:47:09 +0300
The maven-jar-plugin configuration of Maven's jar package is detailed and the MANIFEST.MF file is automatically generated.
Introduction to maven-jar-plugin configuration
Recently, I learned the springboot multi-module jar package deployment project, and used the maven-jar-plugin plug-in. I'll study it carefully. I won't say much nonsense. Look down.
The maven plug-in functions: compile, package, deploy... are all in the ${project. build. directory}/ classes file ...
Added by felodiaz on Wed, 02 Oct 2019 14:41:36 +0300
Node quota, quota management tree, status information in zk
Qutas mainly completes the definition of quota catalogue:
Restriction information contains the required size of a path
In zk, the directory structure is / zookeeper/quota/xxx/zookeeper_limits
State information contains the actual size of a path
/zookeeper/quota/xxx/zookeeper_stats
And provide the restricted path and state path methods corr ...
Added by receiver on Wed, 02 Oct 2019 00:19:01 +0300
Tenth Party Project Front End, Activity Management List Paging and Conditions Finding
I. Preparations
Synchronize the swagger API to easyMock and then modify the contents of / gathering/gathering (GET method)
{
"code": 20000,
"flag": true,
"message": "@string",
"data|10": [{
"id": "@string",
"name": "@cword(8,12)",
"summary": "@cword(20,40)",
"detail": "@cword(20,40)",
"s ...
Added by davelr459 on Tue, 01 Oct 2019 15:31:59 +0300
python-inspect module
Common functions of inspect module
import inspect # Import inspect module
inspect.isfunction(fn) # Detecting whether fn is a function
inspect.isgenerator((x for x in range(10))) # Check if it's a generator
inspect.isclass(int) # Check if int is a class
inspect.isbuiltin(print) # Check if print ...
Added by whiterecluse on Mon, 30 Sep 2019 22:32:28 +0300