Python crawls 50 pages of data from public comments, and the best Chengdu hotpot to eat is it!

Preface The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: carrot sauce PS: if you need Python learning materials, you can click the link below ...

Posted by tboneuls on Thu, 28 Nov 2019 10:47:29 +0100

Solutions common to scss in vue

Sketch Recently, due to project requirements, many articles about scss public have been reviewed. Here is a brief summary of those articles Solution a. When we want to use the sharing of scss files, first we need to think about how we should edit scss files, such as reducing the coupling between variables and mixing in scss files. We can sepa ...

Posted by Drezard on Thu, 28 Nov 2019 05:20:57 +0100

TCP/IP network programming learning note disconnect socket

I. TCP based half shutdown 1. Problems caused by unilateral disconnection The close function of Linux and the closesocket function of Windows mean complete disconnection. Complete disconnection means that the input and output streams are disconnected at the same time. If host A no longer needs to transmit data to host B, and ...

Posted by kpzani on Wed, 27 Nov 2019 17:56:08 +0100

Goroutine synchronization / channel, mutex, read / write lock, deadlock / condition variable

1. Goroutine synchronization [data synchronization] Why goroutine synchronization is needed The concept of gorotine synchronization and several ways of synchronization 1.1 why goroutine synchronization is needed package main import ( "fmt" "sync" ) var A = 10 var wg = sync.WaitGroup{} func Add(){ defer wg.Don ...

Posted by stormcloud on Wed, 27 Nov 2019 10:48:41 +0100

Detailed explanation of HashMap principle

The source code of this article is based on jdk8 version. Let's talk about the core basic and key and difficult knowledge of hashMap Summary 1. Constructor II. put operation 1. hash function 2. Array subscript calculation 3. Operation steps summary III. resize Expansion of jdk1.8 How to avoid the concurrent problem that leads to the chai ...

Posted by tmharrison on Mon, 25 Nov 2019 11:58:44 +0100

UICollectionView set the first cell to be selected by default

In the previous article, the default cell selected for UICollectionView is that each cell has a corresponding identity, which means that the reuse mechanism of UICollectionView is abolished. For less data, it is OK, but for larger data, it will cause performance problems. So I think that under the reuse mechanism of UICollectionView, the gener ...

Posted by adzie on Sun, 24 Nov 2019 16:48:32 +0100

Find the correct mobile number

Title: it is known that the mobile phone number is an 11 digit string composed of 0-9 and so on. Now, it is judged whether it is the correct mobile phone number according to the entered characters Requirements: 1. If the input string starts with any group of 151, 153, 173, 180, 193 and consists of just 11 digits, then the output is:% s is ok ...

Posted by jholzy on Sat, 23 Nov 2019 16:58:48 +0100

Values passed between vue components: parent to child, child to parent

I. transfer value from parent component to child component 1. Create a child.vue under the src/components / folder 2. Create props in child.vue and add a new title attribute <template> <div> <h1>child Sub components</h1> <div>{{title}}</div> </div> </template> <script> export default { ...

Posted by double-f on Fri, 22 Nov 2019 19:27:12 +0100

Vue infinite scroll load instruction

There's no load, just a way to tell if the scroll bar has reached the bottom of the browser If it arrives, the event will be triggered. If it arrives, it will not be handled. The calculation formula is simple: the bottom is equal to (0) = the height of the scroll bar - the distance between the top of the scroll bar and the visible height. The ...

Posted by cage on Fri, 22 Nov 2019 17:23:56 +0100

Java Review Notes 5 - Exception Handling

exception handling Exception classification and architecture: Error-related types of exceptions are exceptions that programs cannot handle (most of which are unresolved by modifying code), and these exceptions often require us to adjust the JVM's operating environment Exception-related types of exceptions are exceptions that programs can handl ...

Posted by dvdflashbacks on Thu, 21 Nov 2019 22:47:24 +0100