符号的英文读法

来源:互联网 发布:斗鱼刷鱼翅软件 编辑:程序博客网 时间:2024/04/30 08:02
 

@        at           这个总是会读的啦,Email满天飞的时代
#        sharp          大名鼎鼎 的C#想必都会读了
$         dollar
[]        Square brackets            方括号
|       vertical bar                      垂直??不懂中文怎么说,哈哈
[             An open square bracket         前面那个方括号,不知道中文是不是这样说的^_^
)             A closing parenthesis            后面那个括号,哈哈
*            An asterisk               星号
^           A carat symbol            中文呢?
/            A slash          斜杠
\              backslash           反斜杠
.            point            点

\n     # A newline
\t     # A tab
[a-z]     # Anything from a to z inclusive

non-word character      不换行字符串?
digit       数字
word boundary      词语边界??
whitespace         空格,说space也可以吧
expression        表达式
statement     等式
result     结果
arrow      箭头
underline        下划线
comma 逗号
引号 quotation marks
single quotes and double quotes       单引号和双引号
colon 冒号
问号     interrogation        , question mark     ???????


$a = 1 + 2; # Add 1 and 2 and store in $a                加 add      ...       and ...
$a = 3 - 4; # Subtract 4 from 3 and store in $a         减     subtract ...     from ...
$a = 5 * 6; # Multiply 5 and 6                                   乘      multiply ...     and ...  
$a = 7 / 8; # Divide 7 by 8 to give 0.875                   除     divide ... by ...
$a = 9 ** 10; # Nine to the power of 10                        9的 10 次方
$a = 5 % 2; # Remainder of 5 divided by 2                 5除以2的余数 (取模)
++$a;     # Increment $a and then return it             加1 increment      递增??
$a++;     # Return $a and then increment it        
--$a;     # Decrement $a and then return it             减一     decrement  
$a--;     # Return $a and then decrement it
a += $b; # Add $b to $a
$a -= $b; # Subtract $b from $a
$a .= $b; # Append $b onto $a             连接字符串     append     ... onto ...

原创粉丝点击