English——Punctuation

本文汇总了英语中常见的各种标点符号及其名称,包括句号、逗号、冒号等,并附带部分数学符号的英文名称,如加号、减号、乘号等,适合用作快速查阅。

转自:http://www.ruanyifeng.com/blog/2007/07/english_punctuation.html

 

. period or full stop 句号
, comma 逗号
: colon 冒号
; semicolon 分号
! exclamation mark 惊叹号
? question mark 问号
- hyphen 连字符
* asterisk 星号
' apostrophe 所有格符号,单词内部的省略
— dash 破折号
_ underscore
‘ ’ single quotation marks 单引号
“ ” double quotation marks 双引号
( ) parenthesis or round brackets 圆括号
[ ] square brackets 方括号
<> Angle brackets 尖括号
{} curly brackets or braces 大括号
《 》French quotes 法文引号;书名号
... ellipsis 省略号
¨ tandem colon 双点号
" ditto 同上
‖ parallel 双线号
/ slash or virgule or diagonal mark 斜线号
& ampersand = and
~ tilde or swung dash 代字号
§ section; division 分节号
→ arrow 箭号;参见号
| vertical bar 竖线
\ backslash 反斜线
=====================
附:部分数学符号的英文名称
+ plus 加号;正号
- minus 减号;负号
± plus or minus 正负号
× is multiplied by 乘号
÷ is divided by 除号
= is equal to 等于号
≠ is not equal to 不等于号
≡ is equivalent to 全等于号
≌ is equal to or approximately equal to 等于或约等于号
≈ is approximately equal to 约等于号
< less than sign 小于号
> more than or greater than sign大于号
≮ is not less than 不小于号
≯ is not more than 不大于号
≤ is less than or equal to 小于或等于号
≥ is more than or equal to 大于或等于号
% per cent 百分之…
‰ per mill 千分之…
∞ infinity 无限大号
∝ varies as 与…成比例
√ (square) root 平方根
∵ since; because 因为
∴ hence 所以
∷ equals, as (proportion) 等于,成比例
∠ angle 角
⌒ semicircle 半圆
⊙ circle 圆
○ circumference 圆周
△ triangle 三角形
⊥ perpendicular to 垂直于
∪ union of 并,合集
∩ intersection of 交,通集
∫ the integral of …的积分
∑ (sigma) summation of 总和
° degree 度
′ minute 分
″ second 秒
# number …号
℃ Celsius system 摄氏度
@ at 在

### `punctuation` 的含义 在 Python 里,`string.punctuation` 是 `string` 模块中的一个常量,它包含了所有 ASCII 标点符号,即 `!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~`。在编码过程中,这些标点符号和其他字符一样,可组成字符串,然后进行 Base64 编码。 ### `decodebytes` 的含义 `decodebytes` 是 Python `base64` 模块中的函数,其作用是对 Base64 编码的字节数据进行解码,把它还原成原始的二进制数据。 ### 二者在 IT 领域的关联 在数据处理流程里,`punctuation` 里的标点符号可作为数据的一部分,被编码成 Base64 格式,之后再用 `decodebytes` 函数解码。下面是示例代码: ```python import base64 import string # 获取所有标点符号 punctuations = string.punctuation # 将标点符号编码为 UTF - 8 字节数据 punctuation_bytes = punctuations.encode('utf-8') # 对字节数据进行 Base64 编码 encoded_punctuation = base64.encodebytes(punctuation_bytes) # 使用 decodebytes 对 Base64 编码的数据进行解码 decoded_punctuation = base64.decodebytes(encoded_punctuation) # 将解码后的字节数据转换为字符串 result = decoded_punctuation.decode('utf-8') print(f"原始标点符号: {punctuations}") print(f"Base64 编码结果: {encoded_punctuation.decode('utf-8')}") print(f"解码后的结果: {result}") ``` ### 应用场景 在数据传输和存储场景中,包含标点符号的字符串可能会被 Base64 编码,以确保在不支持二进制数据的环境中能正常传输或存储。在接收端,就需要使用 `decodebytes` 函数把 Base64 编码的数据解码为原始的二进制数据,进而还原成原始的字符串。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值