author Zhao Xiao mission 1:0 Basic JavaScript Coding (i)2809 2017-03-02 10:49 First, JS in innerHTML, outerHTML, InnerText, outertext, value of the difference and contact? JS Sets or gets the value of the selection: ①innerhtml: Property Sets
Brief introduction:Data types other than null and undefined are defined as objects in JavaScript, and variables can be defined using the method of creating objects, String, Math, Array, Date, RegExp are important built-in objects in JavaScript, and
Analog Login1. The user enters the account password to log in2. User information exists in the file3. User password error three times after locking userKnowledge Points: Strip (), Split (), while, for loop blending, and use of Boolean valuesThe
Python's string commonly built-in functions are as follows:
Serial Number
Method and Description
1
Capitalize () Convert the first character of a string to uppercase # !/usr/bin/python3 str = "
1. Math Object1.1 Introduction Math object is a mathematical object that provides mathematical calculations of the data, such as obtaining absolute values, rounding up, and so on. No constructors, cannot be initialized, only static properties and
DescribeThe Istitle () method detects whether all the words in the string are spelled with uppercase letters and the other letters are lowercase.GrammarIstitle () method syntax:Str. Istitle() Parameters
No.
return valueReturns True if all
Apple that document wrote a lot of it and did not write down the optional value (optional) this thing. There is a "Optional Chaining" chapter, but it is not fully explained. Finally found a half-day in the "The Basics" ink a few words. If you don't
1. Math Object1.1 Introduction Math object is a mathematical object that provides mathematical calculations of the data, such as obtaining absolute values, rounding up, and so on. No constructors, cannot be initialized, only static properties and
DescribeThe Python Upper () method converts lowercase letters in a string to uppercase.GrammarUpper () method syntax:Str.upper ()Parameters
NA.
return valueReturns a string with lowercase letters converted to uppercase.InstanceThe following
DescribeThe Isupper () method detects whether all letters in a string are uppercase.GrammarIsupper () method syntax:Str.isupper ()Parameters
No.
return valueReturns True if the string contains at least one case-sensitive character, and all of
This article mainly introduces the use of the Islower () method of handling strings in Python, which is the basic knowledge of the introduction of Python, the need of friends can refer to the
The Islower () method determines whether all characters (
This article mainly introduces the use of the title () method in Python, which is the basic knowledge of Python's introduction, and needs friends to refer to the following
The title () method returns a copy of the first character uppercase string
The Strip () method removes the specified character from the end of the string (the default is a space)Like what:Str= "0000000this is string EXAMPLE....WOW!!! 0000000 ";PrintStr.Strip( ' 0 ' result: this is string example .... wow !
Reference Blog: http://blog.csdn.net/SeeTheWorld518/article/details/48314501Http://www.jb51.net/article/49325.htm
Functions commonly used in the time module
Function
Function
Time.time ()
Get time
This article mainly introduces the use of the Swapcase () method in Python to transform the case of the tutorial, is the basics of Python introduction, the need for friends can refer to the
The Swapcase () method returns a copy of all the uppercase
1. Math Object1.1 Introduction The Math object, which is a mathematical object, provides a mathematical calculation of the data, such as acquiring absolute value, rounding up, and so on. No constructors, cannot be initialized, provides only static
Type Conversions
function
Description
Example
int (x [, Base])
Converts x to an integer, base optional, binary, default to Decimal
Float (x)
Convert x to a floating-point number
Aggregate functions
AVG, average
count, number of bars in the statistics record
Max, find the maximum value
Min, find the minimum value
Range, which calculates the difference between the maximum and minimum values of the selected row
STDEV,
This article mainly introduces the center () method used in Python for handling strings, which is the basic knowledge in Python, and needs friends to refer to the
The center () method returns a string centered on the length width. Padding is done
String functions are used to manipulate the data values in a column, usually of a character type.1, ASCLL (character), converts the specific character to the corresponding integer (ASCII) code, and the result is a positive number.Example: Select
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.