String, StringBuffer, StringBuilder -- common methods and differences of "3S" [cloud map Zhilian]

Introduction to String class String yes a reference data type is null by default;String is of final type and cannot be changed and inherited;The combination of basic type and String will be converted to String type; 1, String common methods length() method 1. Use the length() method of the String class to get the length of the declared String o ...

Posted by DedMousie on Mon, 22 Jun 2020 05:35:21 +0200

Record es6,class

The basic syntax summary of ES6 | class Class and module, the default is strict mode, so you do not need to use strict to specify the running mode. As long as your code is written in classes or modules, only strict patterns are available. Considering that all code in the future is actually running in mo ...

Posted by edup_pt on Tue, 09 Jun 2020 08:40:08 +0200

Python quick start notes: day 3

This is a self-study note for preparing for the postgraduate entrance examination. I hope to make a textCNN text sentiment analysis language foundation. The blogger is not a computer major. If the netizens are lucky enough to see this article, if there is any omission in the content of the blog, please ...

Posted by johnbest on Fri, 06 Mar 2020 06:49:48 +0100

java foundation -- circular printing

java basic printing graphics Output the solid diamond and the hollow diamond in the console, and the output results are as follows: /* * * * *** * ***** * ******* * ***** * *** * * */ ...

Posted by DjMikeWatt on Fri, 31 Jan 2020 23:36:50 +0100

C Language Review In-depth Study: Arrays and Pointers

C Array Arrays are sequential collections that store a series of variables of the same type.All arrays consist of contiguous memory locations. Declare Array You need to specify the type and number of elements type arrayName [ arraySize ]; Initialize Array //The number of values between braces { ...

Posted by axiom82 on Sat, 18 Jan 2020 02:40:05 +0100

C Language Notes 07_Enumeration&Pointer

Emum (enumeration) Enumeration is a basic data type in C. It can make data more concise and readable. Enumeration grammar is defined in the following format: enum enumeration name {enumeration element 1, enumeration element 2,...}; For example, if there are 7 days in a week, instead of enumeration, we need to use #define to define an alias for ...

Posted by goodtimeassured on Thu, 19 Dec 2019 10:39:52 +0100

groovy program structure

Definition package The definition of a package is the same as in Java: // defining a package named com.yoursite package com.yoursite Import package 1.Import package //After the class name in the package is imported, you can directly use the class name without adding the limited name // importing the class MarkupBuilder impo ...

Posted by keenlearner on Sat, 07 Dec 2019 13:09:15 +0100

[Python trial ox blade] cycle

1. Fibonacci series Fibonacci series, the first two items of the series are 1, and each item after is the sum of the first two items. #!/usr/bin/env python3 a, b = 0, 1 while b < 100: print(b) a, b = b, a + b The default print output will automatically wrap the line. If you do not want to wrap the line, you can replace the line brea ...

Posted by smalband on Sun, 03 Nov 2019 14:07:29 +0100

Batch Execution Case of Unittest on Day 4 of python+unittest Framework

Starting today with batch execution of use cases, the scenario is as follows: We may have multiple module files (. py) in our work. These files are distributed under different module files according to different business types or functions. In the previous small examples, our test cases are all in one file, running directly in the test suite ~ ...

Posted by n000bie on Sun, 25 Aug 2019 16:46:36 +0200

Building MNIST Handwritten Number Recognition with Keas and tensorflow

MNIST Handwritten Digital Set MNIST is a handwritten digit recognition data set developed by the U.S. Postal System. Handwritten content is 0-9, there are 60,000 image samples, we can get MNIST official website Free download, a total of 4. gz suffix compression files, which are binary content. train-images-idx3-ubyte.gz Picture samples for tr ...

Posted by fahhem on Fri, 19 Jul 2019 12:10:14 +0200