units
单位的常量
- 定点数:
n
,u
,m
,k
,K
,G
,T
andP
. - 2 的幂:
Ki
,Mi
,Gi
,Ti
andPi
.
函数列表
to_n(num: int) -> str
Int literal to string withn
suffixto_u(num: int) -> str
Int literal to string withu
suffixto_m(num: int) -> str
Int literal to string withm
suffixto_K(num: int) -> str
Int literal to string withK
suffixto_M(num: int) -> str
Int literal to string withM
suffixto_G(num: int) -> str
Int literal to string withG
suffixto_T(num: int) -> str
Int literal to string withT
suffixto_P(num: int) -> str
Int literal to string withP
suffixto_Ki(num: int) -> str
Int literal to string withKi
suffixto_Mi(num: int) -> str
Int literal to string withMi
suffixto_Gi(num: int) -> str
Int literal to string withGi
suffixto_Ti(num: int) -> str
Int literal to string withTi
suffixto_Pi(num: int) -> str
Int literal to string withPi
suffix