cast of Go daily

brief introduction Today we will introduce another library of SPF 13 cast . cast is a small and practical type conversion library for converting one type to another. cast was originally developed for hugo Medium. Rapid use First install: $ go get github.com/spf13/cast After use: package main import ( "fmt" "github.com/spf13/cast" ) fun ...

Posted on Tue, 04 Feb 2020 04:18:06 -0800 by Lumio

50 lines of Python code, easy to translate Chinese and English

Python learning exchange group: 125240963, daily sharing of dry goods within the group, including the latest Python enterprise case study materials and zero basic introductory course, welcome to join the group to learn and exchange Nowadays, more and more attention is paid to English ability. If you know English, you will come into contact w ...

Posted on Mon, 03 Feb 2020 07:35:46 -0800 by Gast

Python learning 05.08: Python variable scope

The so-called Scope is the effective range of a variable, which range a variable can be used in. Some variables can be used anywhere in the whole code, some variables can only be used inside the function, some variables can only be used inside the for loop. The scope of variable is determined by the definition position of variable. The scope of ...

Posted on Mon, 03 Feb 2020 07:35:53 -0800 by leeandrew

Luogu the first task of Luogu

From now on, I will try to share the challenges and tasks of Luogu with you. Please comment and pay more attention Article directory Super Mary game A+B Problem Xiaoyu buys stationery Swimming time of small fish Links: 1.Luo Gu 2.Theorie des Distribu Task 1 (difficulty: 1) Complete this task by at ...

Posted on Sun, 02 Feb 2020 22:59:23 -0800 by bjoerndalen

Spring Boot: Introduction

1. What is Spring Boot Spring Boot is a new framework provided by the Pivotal team and is designed to simplify the initial build and development of new Spring applications.The framework is configured in a specific way so that developers no longer need to define a template configuration.In my words, Spring Boot is not really a new framework. It ...

Posted on Sun, 02 Feb 2020 18:01:34 -0800 by vanlier

How to splice strings gracefully in Java

In Java, how do we do string splicing? String splicing is something we often do in Java code, which is to splice multiple strings together. As we all know, string is an immutable class in Java, so once it is instantiated, it cannot be modified. So how can we gracefully splice our strings? I found a lot of technical data here. Basically, the str ...

Posted on Sun, 02 Feb 2020 04:11:34 -0800 by sleepingdanny

scala programming ideas -- classes and objects

Object is the foundation of many modern programming languages, including scala. In object-oriented programming language package com.test1 object Scala09_test3 { def main(args: Array[String]): Unit = { val r1 = Range(0,10) //For range, the number of available operations is staggering. The ...

Posted on Sat, 01 Feb 2020 07:48:39 -0800 by digitalflash

C + + Learning note 1

1, C + + basic concepts 1, object The idea of object-oriented is to regard the world as composed of various objects with behaviors. Any object has certain characteristics and behaviors (data and algorithm), That is, the feature is the data, the behavior is the algorithm, and the algorithm is the f ...

Posted on Sat, 01 Feb 2020 03:20:14 -0800 by dunn_cann

C + + understand the realization principle of polymorphism

Virtual function and polymorphism 01 virtual function In the definition of a class, a member function with a virtual keyword in front of it is called a virtual function; The virtual keyword is only used in the function declaration in the class definition, not when writing the function body. class Base { virtual int Fun() ; // virtual fu ...

Posted on Sat, 01 Feb 2020 01:58:04 -0800 by haaglin

The "object" of Scala learning

object It is equivalent to a single instance of class. Usually, some static field s or methods are placed in it. When the method of object is called for the first time, the constructor of object will be executed, that is, the code inside the object that is not in the method. Note that object cannot define the constructor that accepts parameter ...

Posted on Sat, 01 Feb 2020 00:09:09 -0800 by Daen