Python crawler crawls girls' pictures and downloads them in batches (you know ~)

1. Project introduction This project uses the program provided by Python + the use of selectors in the graph (quite easy to use) to realize crawling the picture of the girl graph (welfare graph). I have learned that the paw (2, 10) of a certain durian is right! 2. Knowledge points used ① Python Programming (I use version 3.7 ...

Posted by craigh on Tue, 19 Nov 2019 19:36:13 +0100

A reconstruction of business code

Business needs The prompt on the side of listening task is dynamically prompted according to the listening time and the completion of the task. The flow chart is as follows Pseudo code of client Code comments before Refactoring: When the listening task configured by the server changes dynamically, it can be handled correctly and the code is ...

Posted by titangf on Tue, 19 Nov 2019 19:26:57 +0100

Elasticsearch Series - A Simple Start

outline This article mainly introduces the data format of Elasticsearch Document, compares the modeling of Java applications and relational databases, describes the basic cluster state query, the basic CRUD operation example of Document and the bulk batch processing example by writing Restful API on Kibana platform. Document data format The dat ...

Posted by andyg2 on Tue, 19 Nov 2019 01:55:25 +0100

[Collection Series] - Deeply shallow analysis of HashMap

1. Summary In the first chapter of the collection series, we learned that the implementation classes of Map are HashMap, LinkedHashMap, TreeMap, IdentityHashMap, WeakHashMap, Hashtable, Properties, and so on. HashMap has always been a hot topic, and I promise you'll need it if you go out for an interview! This article mainly combines the diffe ...

Posted by r_honey on Mon, 18 Nov 2019 03:41:56 +0100

[Java force deduction algorithm] LeetCode 140 word splitting II (to be improved)

Title: Given a non empty string s and a dictionary wordDict containing a list of non empty words, add spaces in the string to build a sentence so that all the words in the sentence are in the dictionary. Return all these possible sentences. Explain: You can reuse words in the dictionary when you separate them. You can ass ...

Posted by Nymphetamine on Sun, 17 Nov 2019 22:47:41 +0100

In C + +, other functions cannot be defined in main function!

VS2017, C + + language. There is a strange problem in programming today. The program is as follows: #include<iostream> #include<string> #include <vector> using namespace std; int main() { struct conf { char itemname[40]; char itemcontent[100]; }; char * GetInfo(vector<conf *> & conflist, cons ...

Posted by teddirez on Sun, 17 Nov 2019 17:30:09 +0100

SpringBoot From Beginning to Abandoning, Thesaurus - Autoconfiguration Principles

springboot auto-configuration principle Attribute references that profiles can configure Principle of automatic configuration 1. Load the main configuration class when springboot starts, and turn on auto-configuration @EnableAutoConfiguration 2. @EnableAutoConfiguration effect: Import some components into the container using EnableAutoConfigu ...

Posted by xionfoo on Sun, 17 Nov 2019 02:52:48 +0100

Introduction to the use of SPI

spi is the abbreviation of Service Provider Interface. Using spi technology, we can change the implementation class of an interface in a program by modifying the configuration, so as to change the program behavior. The usage of spi is as follows: Define the interface. package com.foo.bar.service; public interface Foo { String foo(String n ...

Posted by Joe Haley on Sat, 16 Nov 2019 21:05:53 +0100

echarts dashboard tutorial

1: example of the instrument panel in three minutes after echarts Import related documents <!-- Introduce echarts.js --> <script src="js/echarts.min.js"></script> <script src="js/jquery-1.11.3.js"></script> The original default display is as follows Picture.png Three minu ...

Posted by nainil on Fri, 15 Nov 2019 20:28:38 +0100

ztree node assignment to obtain node information

Requirement: when clicking a node, assign a value to the node to obtain and display all the information in the clicked tree node.   Picture.png 1: before the add or delete interface pops up, assign a value to the node, get the information in the node, and then do the next logic.$("#toUpdateBtn").attr("sid", treeNode.id);$ ...

Posted by JBWebWorks on Fri, 15 Nov 2019 16:13:48 +0100