Python learning diary 05

Catalog Day.05 1. tuple 2. Practice of constructing program logic 3. Today's summary Day.05 2020.02.23 Today's main learning content is tuple and training seven exercises to consolidate the basis of the previous study. 1. tuple Tuples are created in the same way as lists, except that lists ar ...

Posted by azn_romeo_4u on Fri, 06 Mar 2020 23:32:34 -0800

How to understand the lambda expression in java

1. From polymorphism Polymorphism in java enables us to create an instance for variables of interface type, that is, to create objects of interface implementation class. For example, define an add interface and an implementation class of the interface Add interface: public interface IAdd { int a ...

Posted by tat on Fri, 06 Mar 2020 23:25:45 -0800

What is Time Slicing?

according to W3C performance team More than 50 ms is a long task. Pictures from Using RAIL model to evaluate performance According to the figure above, when the delay exceeds 100ms, the user will notice a slight delay. So to avoid this situation, we can use two schemes, one is Web Worker, the other is Time Slicing. Web Wor ...

Posted by benzrf on Fri, 06 Mar 2020 23:03:48 -0800

NIO - Selector in Java network programming

Preface I have a general understanding of NIO operation and three componentsJava network programming (4) NIO understanding and three components of NIO And learn in detail: Buffer and ChannelJava network programming (5) NIO - Buffer detailsJava network programming (6) NIO - Channel details Next, comple ...

Posted by ulenie on Fri, 06 Mar 2020 22:39:16 -0800

WPF programming treasure -- on custom elements

WPF programming treasure -- on custom elements Written in front Building basic user controls Create project Define properties, methods, and events Add mark Using tutorials Write at the end Written in front I finished the first half of this section yesterday, and then I wrote a color control ...

Posted by robster on Fri, 06 Mar 2020 00:05:09 -0800

MapReduce implements wordcount statistics

Inherit Mapper's generics public class WCMapper extends Mapper<LongWritable, Text, Text, LongWritable> Longwritable - > start offset Text - > entered text Text - > output text Longwritable - > count Of the four generics, the first two are the type of specified mapper input data, the key is the type of input key, ...

Posted by Okami on Thu, 05 Mar 2020 21:21:55 -0800

Week 2: how to evaluate the model

Catalog 1. Learning objectives 2. Data splitting 2.1 introduction to data splitting 2.2 manual data splitting function 2.3 call the data splitting function in sklearn, train ﹐ test ﹐ split() 3. Indicators for evaluation of classification results 3.1 accuracy 3.1.1 definition 3.1.2 calculat ...

Posted by kusarigama on Thu, 05 Mar 2020 05:23:45 -0800

Sword finger offer1-7 questions

/** In a two-dimensional array (the length of each one-dimensional array is the same), each row is sorted in ascending order from left to right, and each column is sorted in ascending order from top to bottom. Please complete a function, input such a two-dimensional array and an integer to determine wh ...

Posted by squalls_dreams on Thu, 05 Mar 2020 02:56:08 -0800

Simple and practical object transformation replication tool (continued 2)

Previous link: Simple and practical object transformation and replication tool Simple and practical object transformation and replication tools (Continued) Just in a flash of fancy, I think that a source object may be copied to multiple target objects, and the fields that these target objects need to copy are not the same. So I opened the ...

Posted by Xyphon on Wed, 04 Mar 2020 20:57:35 -0800

Talk about skywalking's AbstractPlatformTransactionManagerInstrumentation

order This paper mainly studies the AbstractPlatformTransactionManagerInstrumentation of skywalking AbstractPlatformTransactionManagerInstrumentation skywalking-6.6.0/apm-sniffer/optional-plugins/optional-spring-plugins/spring-tx-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/transaction/define/AbstractPlatformTransactionManagerIn ...

Posted by YodaOfCamarilla on Wed, 04 Mar 2020 06:42:11 -0800