3
\ r
Return to position
4
\ t
TAB tab
5
\\
Reverse Slash
6
\‘
Single quotation marks
7
\‘‘
Double quotes
8
\ n
Line break
7. Any data type "+" operation that encounters a string variable will automatically program the string typeExample: String type + int type + Double type = string8. About |(1) on the logical operation:: Mean and , a
exactly the same way.Of course, how to use shtml in Visual Studio is a small problem. (especially simple)1. CreateIf you haven't used it, you'll never expect it.When you add a project to Visual Studio, you cannot find the option to shtml the file at all.The way to create shtml, is directly in, the creation of HTML when renamed to Xx.shtml.2. UseThere's nothing to say about this thing, for a simple example.Like whatI want to quote top.html in index.shtml. and footer.html. Just add such a senten
without error, when defining a JSON object, It's best to use double quotesDeployment
Run the JavaScript validator with JSLint to make sure there are no syntax errors or that the code does not have the potential to ask
Compression tools are recommended to compress JS files before deployment
UTF-8 for Unified file encoding
The JavaScript program should be placed in the. js file as much as possible in the form of
Never ignore the code optimization work, refactoring is a
first, the simple development process(1) define the problem to be solved;Clearly define the problem to be solved, such as the specific implementation of what Functions.(2) designing methods to solve problems;What are the characteristics of a good method:1. The method is clear;2. normalization; (has been verified)3. Strong modularity, easy to modify and maintain;4. Strong Program robustness;(3) design procedures to implement the above methods;Note: syntax, fonts, file naming, and so On.(4) Compil
Encapsulation refers to data hiding, the key is that the method in the class must not be allowed to access other classes of the instance domain, the program only through the object's methods and object data to interact.Among the classes, the most common relationships are:
Dependency: A method of one class manipulates another class object
Aggregation: An object that contains objects of some other class
Inheritance: Subclasses and Parent classes
Local variables cannot be initialized
To record some small algorithmic knowledge that seems interesting to meIdentify valid parenthesis stringsIn parentheses, for example, if only the parentheses are removed as a feature, "()", "" "(empty string)," ((() (() (() (())), "These are valid parentheses strings, although nested but not messy, each opening parenthesis can find the correct closing parenthesis pairand ") (())", "((", "" ("and so on, these strings are illegal.A valid parenthesis string should have a 1 requirement. The number o
# # #HTTPBrother-: The Transport Layer protocol uses TCP by defaultSmall knowledge:1. The server is being asked to set the address of the proxy server itself. Each request from the client is sent directly to the proxy server, and the proxy server requests the target resource (the LAN machine commonly used in the firewall to access the Internet or XXX is using forward)2. The reverse proxy is set on the server side. The client does not need to make any settings.2.1 Principle: Use a proxy server to
", [[NSString Stringwithformat:format, # #__VA_ARGS__] utf8string]); #else #define NSLog (...) #endif16, UITableView Click on the appearance of gray but immediately disappear.Clicking that moment can indicate which line is clicked and the gray stop disappears for a second.// 1. Set cell click Time for Gray Cell.selectionstyle = uitableviewcellselectionstylegray; // 2. In the TableView proxy method The Didselectedrow method writes this -(void) TableView: (UITableView *) TableView Didselecterowa
Before the study time did not write a blog, now began to review, remember some easy to forget the small knowledge itA Java reserved two-bit decimal method1> BigDecimal methodDouble F = 11.3156;BigDecimal B = new BigDecimal (f);f = B.setscale (2,bigdecimal.round_half_up). Doublevalue ();2> DecimalFormat FormattingDouble F = 11.3156;DecimalFormat df = new DecimalFormat ("#.00");Df.format (f);3> String methodDouble F = 11.3156;string s = string. Format ("%.2f", f);F = double.valueof (s);Two Create
1. Show hidden folders (enter the following code on the MAC command line):1) Show hidden foldersDefaults write Com.apple.finder appleshowallfiles Yes killall Finder2) do not show hidden foldersDefaults write Com.apple.finder appleshowallfiles No killall Finder2. View Native IPIpconfig3. UNIX basic commands> CD: Changing the working directory> pwd: View current path> ls-l: View display files> ls-a: Show All Files> ls-g: With color display> Touch file name: Create file> mkdir folder name: Create
# # #判断linux系统是32位还是64位You can use "getconf word_bit" and "getconf long_bit" to get the digits of WORD and LONG, and 64-bit systems should be 32 and 64 respectively.If [$ (getconf word_bit) = ' + '] [$ (getconf long_bit) = ' 64 ']; ThenEcho 64ElseEcho 32Fi# # #在当前脚本中调用另外的脚本文件Method: (English point). + file name or source + file nameFist.sh:#!/bin/bashEcho ' Your is in first file 'Second.sh:#!/bin/bashEcho ' Your is in second file 'SOURCE First#或者用下面的方法# # #列出当前目录下最大的10个文件[Email protected] ~]# D
the order they were previously the dumps is serialized as a string. 6. Shelve ModuleThe shelve module is a simple k,v module that persists memory data through a file and can persist any python that pickle can support data format, "can be understood as a possible implementation of multiple dumps and, loads "Use ="Import shelveD = Shelve.open (' shelve_test ') # open a fileSave:d["Key"]=valueFetch:d,get ("key")Cryptographic modulesHashlib ModuleEncryption in Chinese/ English:Import HashlibM=HASHL
Object[] as the data sourceThe model has a property of xxx[] Unknown, in Java, object[] cannot be coerced into xxx[], if the F.set (obj,fieldobj) above, the method reflects the write value, will be an error.Specific methods://obj As Object//ClassKey The name of the member variable for the arrayJava.lang.reflect.Field f =Obj.getclass (). Getdeclaredfield (classkey);//Get Array typeClass Fieldclazz =F.gettype ();if(Fieldclazz.isarray ()) {object[] Arrayobjs= (object[]) value;//object[of deserializ
1.java 1/0 Running result throw exception, 1/0.0 result is infinity (infinity)2.A%D is defined as (A/b)b+a%d=a (A/B's Chamber of Commerce to 0 rounding) and therefore -14%3 =-2; 14%-3=23.,|,^ represents an integer bitwise, with, OR, XOR.4. A static method cannot use another static method as a parameter5.system.out.println (2.0e-6100000000.1);//200.00000026.system.out.println (' B ');//bSystem.out.println (' B ' + ' a ');//197System.out.println ((char) (' a ' +4));//e7. Converting positive intege
. In this topic, we need to use the BufferedReader class and the InputStreamReader classpublicstatic void Main (String [] args) throws ioexception{BUFFEREDREADERBR = new BufferedReader (new InputStreamReader (system.in));STRINGSTR = null;System.out.println ("Enteryour value:");Str= Br.readline ();System.out.println ("Yourvalue is:" +str);}So we can get the string we entered.Method Three: This method I think is the simplest, the most powerful, is to use the scanner classpublicstatic void Main (St
1.getattribute () unconditional invocation2. Data descriptor (an instance of the class that defines the __get__\__set__ method)--Called by the GetAttribute () of 1, the data descriptor is converted to: the current class name. __dict__[' x '].__get__ (Instance,owner) "--If we redefine the __getattribute__ method, it may result in no way to invoke the data descriptor3. Dictionary of the current object--If the data description conforms to the property name of the current object dictionary, the data
Problem:In the production or experimental environment often encounter directory unloading situation, such as below, I uninstalled the/kejiandata directory when the following error occurred, it is because there is a program or process is occupying this terminal, all not allowed to uninstall. Today we will introduce a method of trying to be unpleasant.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/83/60/wKioL1dx67XQ2XviAAAdxlNvkPM252.png "title=" Sogou 20160628111423.png "alt=" Wkiol1d
:#include#include "Windows.h"using namespace Std;void Main (){couttestcolor (no font color set)" Setconsoletextattribute (GetStdHandle (std_output_handle), foreground_intensity| foreground_red|foreground_green| Foreground_blue);//Set three-color additioncouttestcolor (add Red green blue)" Setconsoletextattribute (GetStdHandle (std_output_handle), foreground_intensity| foreground_red);Set Redcouttestcolor (set color is red)" Setconsoletextattribute (GetStdHandle (std_output_handle), foregroun
, after multiple GC still inventory objects will enter the old age,The newly created object may also go directly into the old age, large objects or large array objects, and no external objects are referenced inside the array7.5 Method AreaStores data such as class information, constants, static variables, and instant compiler-compiled code that have been loaded by the virtual machine8. GC Algorithm CorrelationGC General system random Trigger and System.GC (), and fires when Eden allocates a new
1 The C language does not allow nested annotations, such as/* /*/ //For nested annotations, because the third comment will be annotated with the first comment, and the fourth comment will be considered as part of the executable, and an error will be given. 2. To get the exact size of a type or variable on a particular platform, you can use the sizeof operator. The expression sizeof (type) gets the storage byte size of the object or type. GCA, sizeof (int) Gets the number of bytes that the int ty
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.