IntroductionThis article will explain several properties of string.One, the immutability of stringFor beginners, it is easy to mistakenly think that a string object can be changed, especially when the + link, the object seems to really change.
Python's string commonly built-in functions are as follows:
Serial Number
Method and Description
1
Capitalize ()Converts the first character of a string to uppercase
2
Center (width,
A computer is a machine that can do mathematical calculations as the name implies, so a computer program can handle a variety of values. However, the computer can handle far more than the numerical value, but also can deal with text, graphics, audio,
Using Python to invoke External system commands can improve coding efficiency. When the External System command is called, it can be further processed by getting the command to execute the return result code and execute the output. This article
TraverseTraversal is the way that each element of this array is shown to iterate by defining the size of the array and then using the For loop to complete the array, for exampleDouble[] score = new Double[5]; Scanner input = new Scanner (system.in);
several common types of data:
Type identifier
Description
Bytes
Range of values
Int
Integral type
4
–2,147,483,648 to 2,147,483,647
VC + + is a long int class
Short
Linux Scripts:Scripts are typically text files, and running a script actually runs a bash process, which is responsible for reading an execution logic from the script file, and then the bash process is responsible for parsing and running the
Package Mainimport "FMT" Func Main () {//Run Result: AIF true | | b () {//go If judgment takes a short-circuit evaluation, the value has been determined that subsequent expressions will not be evaluated and will not be called FMT. Println
Judging using conditions——————By using conditional judgment, you can have make to select different execution branches depending on the runtime's circumstances. A conditional expression can be a value of a comparison variable, or a value that
1. VariablesDefined:A variable is a small box that loads data in memory, and you can only use it to store data and fetch data.To define the syntax format for a variable:Data type variable name = data valueConsiderations for variable use:A variable
Summary of learning contents of textbookCh8
String class:The program can be used directly, the string class cannot have subclasses
Constructs a String object
Declaring and creating objects using the String classString s =
Java Basics (operator/select struct statement/loop Structure statement/method/identifier)One, Java identifiersA sequence of characters named for a class, interface, method, and so on.1. Identifier composition(1) English letter case;(2) Number
Common Operations for STR
Slice, index, number of characters name = " AITG " # Span style= "COLOR: #008000" > output t print (name[2 ]) # output ait print (Name[0:3 # output 4 print (Len ( Name)
First letter Case"
Tag: value is update copy variable content how much ISA stateObjective1.Python uses the object model to store data, each data type has a built-in class, and each new data is actually an object, that is, all data is objects.2.3 Properties of the
--java Training, Android training, iOS training,. NET training, look forward to communicating with you! ——-first, the String classFeatures: Once initialized, it cannot be changed.The string class copies the Equals method in the object class, which
Points:1 , typeof operatorvar box=false;alert (typeof Box);2 , Undefined typevar box;//undefined type alert (box)3 , Null typeAlert (undefined==null)//undefined are derived from null, so they are two equal and return True4 , Boolean typevar box
Tag: false equals SAR dev Red initialize ice parsing newTalk about array traversal methodsThere are several ways to iterate the JS array:
Every
Some
Filter
Foreach
Map
Reduce
Next, we will exchange each other.Every (
01 Data types1. What is a data typeThe value of the variable is the data we store, so the data class refers to the different kinds of variable values2, why the data to be divided into types?Variable values are used to preserve the state of the real
Python escape characterPython uses a backslash (\) to escape characters when special characters are needed in characters. As the following table:
Escape Character
Description
\ (at end of line)
Line
Value by indexStrings are immutable types and cannot change the value of a stringThere can be up to three parameters, the starting position, the end and the stride length, can be positive value, the response value (the starting position is greater
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.