The basic syntax and types of Kotlin

Basic types Basic types used in Kotlin: numbers, characters, Booleans, arrays, and strings. number Type Bit Double 64 loat 32 Long 64 Int 32 Short 16 Byte 8 Representation In Kotlin, the values can be expressed literally as follows: Decimal: 123 Long type is marked with capital L: ...

Posted by NotVeryTechie on Fri, 01 May 2020 00:10:34 +0200

The use of predicate chain in java 8

The use of predicate chain in java 8 brief introduction Predicate is a functional interface, which represents a method that needs to enter a parameter and return the boolean type. Usually used in stream filter to indicate whether the filter conditions are met. boolean test(T t); Basic use Let's first look at how to use Predicate in stream ...

Posted by ThoughtRiot on Tue, 28 Apr 2020 01:49:17 +0200

[interesting case] make a screen recording tool with Python

1, Write in front As a test, sometimes it is often necessary to record their own operation on the screen, so as to facilitate the follow-up development and positioning of students. In the past, screen to GIF was used to record the screen and make dynamic pictures. Occasionally, python can also be realized. Then hurry to learn. 2, Effect display ...

Posted by Zup on Mon, 27 Apr 2020 10:21:50 +0200

Data Structure Foundation for Python

1. Data Structure Basis A. What is a data structure          b. Classification of data structures         c, List          import random from timewrap import * def list_to_buckets(li, iteration): """ :param li: list :param iteration: Bucketing is the first iteration :return: """ buckets = [[] for _ in range(10)] fo ...

Posted by rachel2004 on Wed, 22 Apr 2020 19:27:53 +0200

Introduction to Feature Engineering

Author: Lin Zelong 1 What is feature engineering? Excellent models often depend on excellent feature extraction, which involves feature engineering.The purpose of feature engineering is to maximize the extraction of features from raw data for use by algorithms and models.Therefore, feature engineering is mainly carried out in the aspect of feat ...

Posted by JoWiGo on Wed, 22 Apr 2020 18:37:01 +0200

Java 8 new feature four: Double colon(::) operator

Attention: Java promotion camp, the latest article delivered at the first time, 10T free learning materials available at any time!!! The double colon (::) operation, also known as the method reference operator, is used to directly call methods of a specified class. Its behavior is exactly the same as that of a la mbda expression. It and lambd ...

Posted by carnot on Fri, 17 Apr 2020 16:28:40 +0200

Java 8 New Feature 3: Default Methods And Static Methods

Attention: Java promotion battalion, the first time the latest articles are delivered, 10T free learning materials are always available!!! Default Methods Prior to Java 8, interfaces could only define abstract methods.Implementations of these methods must be provided in separate classes.Therefore, if you want to add new methods to an interfac ...

Posted by happyme on Thu, 16 Apr 2020 10:00:29 +0200

Python data visualization (Pygal, svg, csv, Bar, Line)

1. pygal (chart type Bar) The Python visualization package Pygal will be used to generate scalable vector graphics files Official pygal document: [www.pygal.org/en/stable/]( http://www.pygal.org/en/stable/) 1. Install pygal pip install pygal -i https://pypi.tuna.tsinghua.edu.cn/simple 2. Simple python charts import pygal pygal.Bar()(1, 3, 3, 7 ...

Posted by Ark3typ3 on Sat, 11 Apr 2020 02:22:41 +0200

Selenium series - Basic Practice of Web UI automation

If you want to learn Selenium from scratch, you can read this series of articles! https://www.cnblogs.com/poloyy/category/1680176.html   Secondly, if you don't know the basic knowledge of the front-end, you need to supplement it yourself. The blogger hasn't summarized it for the moment (although I can, so I don't need to review the front-end ...

Posted by kurky on Sun, 05 Apr 2020 16:47:40 +0200

Beginner python notes (encapsulation, reflection, class built-in attr attributes, packaging and authorization)

Article directory encapsulation reflex Dynamic import module Class built in attr attribute Packaging and authorization This article is still the object-oriented content, mainly analyzes the following three methods of object-oriented programming: encapsulation, reflection, dynamic import module, cla ...

Posted by melqui on Mon, 16 Mar 2020 12:53:01 +0100