[Python] Chain Household Rental Data Grabbing
1. Write in front
As an active developer in Beijing, Tianjin and Hebei, we should take a look at some data of Shijiazhuang, an international metropolis. This blog crawls the rental information of Chain Home. The data can be used as data analysis material in the following blog.
The website we need to c ...
Added by Xil3 on Wed, 24 Jul 2019 12:03:25 +0300
Writing Quality Code: 151 Suggestions for Improving Java Programs (Chapter 6: Enumerations and Annotations _ Recommendations 88-92)
I've been studying Java annotations and Java 8's new lambda expressions in the last few days, but it's still hot, haha.
Recommendation 88: Implementing factory method patterns with enumeration is more concise
The factory method pattern is "creating an object's interface, letting subclasses decide which class to instantiate, and delaying ...
Added by Undrium on Wed, 24 Jul 2019 11:54:00 +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
Handler: Method of updating UI
It always feels like UI updates in android are confusing! To sum up for yourself, it's like throwing a brick to attract jade.
Before reading this article, suppose you understand threads and the use of Handler.
At the end of the article, a sketch is appended to illustrate the relationship between Ha ...
Added by wookie on Tue, 23 Jul 2019 10:45:36 +0300
Java 8-Stream Collection Operations Quick Start
Java 8-Stream Collection Operations Quick Start
Catalog
Brief Introduction to Stream
Why use Stream
Instance data source
Filter
Map
FlatMap
Reduce
Collect
Optional
Concurrent
debugging
Brief Introduction to Stream
Java 8 introduced a new Stream API. Stream here is different from I/O streams. It is more like a colle ...
Added by moon 111 on Tue, 23 Jul 2019 09:40:34 +0300
Python command line parameter parsing
1. Introduction of argparse module
argparse is a python standard library used to process command line parameters.
In most cases, scripts may need multiple parameters, and each parameter type has different uses. It is very useful to add labels before parameters to indicate the type and use of paramete ...
Added by GreenUser on Mon, 22 Jul 2019 11:03:38 +0300
Golang Understanding - Anonymous Functions
Anonymous function
Anonymous Function in computer programming refers to a class of functions that need not be defined. identifier (function name) function or subroutine It exists in many programming languages. wikipedia
Golang supports anonymous functions, that is, when a function is needed, it is redefined. Anonymous functions have no functio ...
Added by leena on Sun, 21 Jul 2019 16:49:12 +0300
Lesson 3 Learning Notes
First missing integer
1. Topics
Given an array A[0... N-1], find the first positive integer that is not in the array from 1.
Given 3, 5, 1, 2, -3, 7, 14, 8, output 4.
2. Analysis
There are two ways of thinking on this topic.
The first idea is based on bitmap idea. It opens up a new array B[0.N-1]. All elements of the array are initialized to 0 ...
Added by DavidGS on Sun, 21 Jul 2019 07:34:33 +0300
C++ Programming Exercise (17) -- "Implementation of Binary Tree Non-Recursive Traverse"
Original Link: http://www.cnblogs.com/fengty90/p/3768831.html
Non-recursive traversal of binary trees
Recently, I read about six ways to write binary tree traversal. Previously, I only wrote it recursively. This time, I will try writing ...
Added by Joost on Sun, 21 Jul 2019 00:03:02 +0300
C++ Programming Exercise (11) -- "Shortest Path Problem of Graph" (Dijkstra algorithm, Floyd algorithm)
Original Link: http://www.cnblogs.com/fengty90/p/3768852.html
1. Dijkstra algorithm
Finding the shortest path from one vertex to all other vertices is an algorithm that generates the shortest path in increasing order of path length.
Al ...
Added by rmurdo on Sun, 21 Jul 2019 00:00:57 +0300