lowercase), underscore, or dollar sign.(2) The remaining letters can be underscores, dollar symbols, any letters or numeric characters.(3) The variable name does not contain keywords.5) Naming habits
Type
Prefix
Example
Array
A
Aarray
Boolean value
B
Bmale
Floating point
F
FTax
Function
Fn
Fnswap
Integral type
I
Iag
Javascript I. Features1. Case-sensitive2. Weakly typed variable, only with the keyword "var"3. Note/*....*/Two. Variables1. The variable is declared by the keyword var.2.var can declare multiple variables at the same time. -------var girl= "jsaacom", Age=19,male=false;3. Variables are not necessarily initialized. ---------var people;Three. Variable name rules1. The initial letter must be (letter, underscore, or dollar symbol)2. The remaining letters can be underscores, dollar characters, any let
Data type1. String2. Numerical type3. Boolean type4. Objects5. Arrays
In order to be more standard, make oneself in the future work more easy and convenient maintenance, adopt some data type of name life habit
Type
Prefix
Example
Array
A
Aarray
Boolean value
B
Bmale
Floating point
F
FTax
Function
Fn
Fnswap
Integral type
I
. ConfigurationSettings. deleettings ["downloadurl"]. ToString ()
+ DateTime. Today. ToString ("yyyyMMdd") + new Random (DateTime. Now. Millisecond). Next
(10000). ToString () + ". csv"; // store it in the path specified by downloadurl in web. config. The file format is the current date + 4 bits
Number of machinesFileStream fs = new FileStream (name, FileMode. Create, FileAccess. Write );StreamWriter sw = new StreamWriter (fs, System. Text. Encoding. GetEncoding ("gb2312 "));Sw. WriteLine ("auto
machine environment, my 32-bit Linux is 4 length
$format = ' A10name/a33pass/iage/cflag ';
Determines how many length bytes a struct occupies, and it is not necessary to read only a single structure
$length = 10 + 33 + 4 + 1;
can also use fopen + Fread + fclose, but file_get_contents because it can be mmap, more efficient
$data = file_get_contents (' file.dat ', ' R ');
for ($i = 0, $c = strlen ($data); $i $bianbian = Unpack ("$format", $data);
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.