Definition and usageThe replace () method is used to replace other characters with some characters in a string, or to replace a substring that matches a regular expression.GrammarStringobject.replace (regexp/substr,replacement) parameter
Text Sequence type-Str (immutable)class Str (object= ")class Str (object=b ', encoding= ' Utf-8 ', errors= ' strict ')Return a string version of object. If Object is not provided, returns the empty string. Otherwise, the behavior of str () depends
From: http://www.ibm.com/developerworks/cn/linux/sdk/dll/index.htmlWhy write an entire application when you just write a plugin?Plugins and DLLs are often a great way to add functionality without having to write an entire new application. In Linux,
DD: Copies a file with a block of the specified size and makes the specified conversion at the same time as the copy.Note: Where the number is specified, the number is multiplied by the following character: b=512;c=1;k=1024;w=2First, parameter
--from "Brother Bird's Linux private dish"--summarize and make it convenient for inspectionaccess to variables : EchoEcho $variableEcho $PATHEcho ${path}Configuration rules for variables1. Variables and variable contents are linked by an equal sign "
Reproduced1. String functionsFunction Name Parameter Example descriptionASCII (string expression)Select ASCII (' ABC ') returns 97Returns the ASCII code of the leftmost character in the string.Char (An integer expression)Select char (100) returns
Command tips:Tips for command exercise:Ctrl + A cursor jumps to the topCtrl + e cursor jumps to the end of a career CTRL + u delete the cursor to the beginning of the contentCtrl + k Delete cursor to end of line contentCtrl + L for clear
1: File PermissionsThere are three types of user access to a file: R (Read), W (write), X. It's a little different for files and directories.File:R: Use the text View tool to view its file contents.W: Use the text Editing tool to edit its file
Bash featuresTerminal, the interface program attached to the terminal:Gui:kde, GNome, XFCECli:/etc/shellsBashZshFishFeatures of bash:Command line expansion: ~, {}Command aliases: Alias, UnaliasCommand history: HistoricalFile name wildcard:
IO Redirection and pipingAlways mentioned, program: Instruction + dataIn fact, the program also has IO, the source of data has many places: file, externalDevices available for input: Files (all Linux files)Keyboard device, file system on the regular
All the hardware devices in the Linux system are represented and used in the way of files, we refer to these files as device files, there are a large number of device files in the/dev directory under Linux, and they are divided into character device
Linux Shell Advanced Tips (i)Http://www.cnblogs.com/stephen-liu74/archive/2011/12/22/2271167.htmlFirst, the input information is converted to uppercase characters before the condition judgmentSetting output level for debug informationThird, judging
1. Special symbols for regular expressions.[: Alnum:]: On behalf of English uppercase and lowercase characters and numbers;[: Alpha:]: Represents the English uppercase and lowercase characters;[: Blank:]: Represents the space bar and the [Tab] key;[:
I. OverviewStrings are almost ubiquitous in JavaScript, and when you are working with the user's input data, when you read or set the properties of a DOM object, while manipulating the cookie, there are of course more .... The core part of
Array: A contiguous memory space that holds multiple elements.Declaring an array: bash-4 support In addition to the default 0,1,2 ... You can also customize the index format, which is called an associative arrayDeclaring an indexed array: declare-a
S.strip (chars) s.find (x,start,end) s.index (x.start,end)#see above;S.format ()#see above;S.partition (x)#see above;S.replace (X,y,n)#replace x with Y, optional n means maximum substitution n times;S.split (X,n)#divide up to n times, S.rsplit ()
The command history of Bash's underlying features:Command history: The shell process saves commands that were previously executed by the user in its session~] #historyCustomizing the history function, which can be implemented by environment
Text functionsCHARCHAR: Returns the corresponding character according to the specified number. The Char function converts the numeric code of other types of computers to characters.Number: The digit that specifies the character, in 1Number: The
Python string built-in functionsPython'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
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.