between a string without a single quote/double quote?Let's go into bash and write an example.[Email protected]:~$ x=123[email protected]-virtual-machine:~$ y=123 456No Command'456'found, did you mean:command'A56'From package'A56'(Universe)456: Command not found[email protected]-virtual-machine:~$ z="123 456"[email protected]-virtual-machine:~$Echo$x123[email pro
Equality operator = =
If the If equality operator compares data of the same type when
comparing different types of data with the strict equality operator else if equality operator:
The original type of data is converted to a numeric type, and the string and Boolean values are translated into numeric values, and then
null = = Undefined returns True
one is an object, the other is a number or a string, and the object is converted to a basic type value, which is more than
else false
The Jquery.type method is a tool method for detecting data types, summarizing the use of JS to provide us with the methods of monitoring data types before analyzing its usage;One, typeof operatorHere is the test codevar data=[],a= ' 123 ', b=0,c=true, d={1:23},e=[123],f=function() {},g=null New Date ();d Ata.push (a,b,c,d,e,f,g,h,i,j,k); for (var key=0;key) { console.log (Data[key]+ ' data type is '
Water men, water
Today, a gentleman asked a Java question. What should the following code output:
Class Demo{public static void main(String[] args){String s = "0";change(s);System.out.println(s);}static void change(String s){s = "123";}}
To be honest, when this gentleman asked me a question, I was quite nervous. After all, he used to be an awesome architect in a company.
In addition, people often encounter self-thought-simple problems and often feel
UK". title ()# "They're Bill's Friends From The Uk"
Str. upper ()
If all letters in a string are converted to uppercase letters, the system automatically ignores the characters that cannot be converted to uppercase letters.
'Chinese abc def 12gh'. upper ()# 'Chinese abc def 12gh'Note that s. upper (). isupper () is not necessarily set to True.
String format output
Str. center (width [, fillchar])The string is centered according to the given width. A specific character can be filled with extra l
1, in three ways to achieve delete the last line of the file.[[email protected] sjx]# cat 123123[[email protected] sjx]# sed ' $d ' 12312[[email protected] sjx]# cat 123 |head-$[$ (cat 123|WC-L) -1]12[[email protected] sjx]# cat 123 |sed-n ' $!p ' 122, using three ways to achieve the matrix of generating 3*3.[[email protected] sjx]# for ((y=0;y3, the use of three
ASCII table, has corresponding characters for each Base64 code value. 64 readable characters from 0 to 63 No, this is the A-Z、a-z、0-9、+、/ origin of the Base64 name.
In 16 binary form
That is, the NSData form is saved, the BASE64 encoding result is a character, and these characters correspond to the code value of the ASCII code table, NSData is the code value that stores the ASCII code table.Here is an example of how the BASE64 encoding and decoding process is described in detail i
Students who have studied Java know that there is a data format for key-value pairs in Java--mapIn Python, there is a format similar to map, which is the dictionary (Dict)1. Create a Dictionary type Objectuser={ "username":"Dylan", " Age ":", "password":"123" }2. TraverseUser={ "username":"Dylan", " Age":" -", "Password":"123"} forKvinchUser.items ():Print(k +":"+V);Results: Username:dyl
#属于apache的一个组件, if not, install with Yum` yum install -y httpd htpasswd` #第一需要-c创建,-m强制md5加密New Password:Re-type New Password:The second time, add users do not need-C, if you use the-C will reset the file, only one record# htpasswd -m /usr/local/nginx/conf/htpasswd gavin New Password:Re-type New Password:Adding Password for user Gavinvim /usr/local/nginx/conf/enable-php.conf location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi-56.
*
represent 0 or more columns in a SELECT statement
Special symbols
/
Terminating SQL statements
Special symbols
Comments
Annotation characters
( Note: tested, above 3,4,5 Pass, not reliable, into trusting ) Here is a list of some commonly used special symbols, where we insert(directly write those can insert successful statements), the Statement installation table appears in the order of occurrence: Sql> C
, in the following command, the directory generated by the dircommand is appended to the dirlist.txt file: dir> dirlist.txt, which redirects the input to a command, just like sending the command output to a file or printer instead of a screen, you can obtain command input from a file instead of a keyboard. To obtain the input from a file, use a smaller sign (
3. Application Example
1. Lock/unlock the Registry
As you know, if the DWORD Value of "Disableregistrytools" under the hkey_current_userso
Advanced regular expression technology (Python version), regular expression python
A regular expression is a Swiss Army knife that searches information for a specific pattern. They are a huge tool library, some of which are often ignored or underutilized. Today, I will show you some advanced usage of regular expressions.
For example, this is a regular expression that we may use to detect American phone numbers:
r'^(1[-\s.])?(\()?\d{3}(?(2)\))[-\s.]?\d{3}[-\s.]?\d{4}$'
We can add some comments a
Common Interview Topics:1. Is the string a reference type or a value type?2. What is the best way to use string connection processing, and what is the rationale?3. What are some issues to be aware of when using StringBuilder?4. How many strings will be present in memory when the following code executes? What's the difference? What is the output of the result? Why is it?String st1 = "123" + "abc"; string st2 = "123ABC"; Console.WriteLine (St1 = = St2);
1. Regular expressionsA regular is a way to describe a string or character by combining symbols with special meanings.2. Common regular matching patternsImport rePrint(Re.findall ('\w','Hello_ | Egon 123'))#Match alphanumeric underlinePrint(Re.findall ('\w','Hello_ | Egon 123'))#match with small w non-numeric character underlinePrint(Re.findall ('\s','Hello_ | Egon 123
Make files and directories into a packageFile packaging[[email protected] ~]# TAR-CVF 1.tar 1.txt 123 234///-c Create-v visual-F file put last face1.txt123/123/111/123/111/234/123/111/234/22.txt234/234/123.txt//////////////////////////////////////////////////////////View the
A regular expression is a Swiss army knife that searches for a particular pattern from information. They are a huge library of tools, some of which are often overlooked or underutilized. Today I will show you some high-level usage of regular expressions.For example, this is a regular expression that we might use to detect telephone numbers in the US:R ' ^ (1[-\s.])? (\ ()? \d{3} (? ( 2)) [-\s.]? \d{3}[-\s.]? \d{4}$ 'We can add some comments and spaces to make it more readable.R ' ^ ' R ' (1[-\s.
Jquery.type usage and source analysisJquery.type method is a tool to detect data types, before analyzing its usage, we summarize the methods that JS provides for us to monitor data types.First, typeof operatorHere is the test codevar data=[],a= ' 123 ', b=0,c=true,d={1:23},e=[123],f=function () {},g=null,h=undefined,i=math,j=/$.+^/,k= new Date ();Data.push (A,B,C,D,E,F,G,H,I,J,K);for (Var key=0;keyConsole.l
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.