RIGHT
功能
返回字符串 str 右边的 len 个字符。
参数
str: string 类型len: int 类型,要返回的字符数量
返回结果
- string 类型,返回字符串右边的 len 个字符。
- 如果
len小于等于 0,返回空字符串 - 如果
len大于字符串长度,返回完整字符串
举例
说明
- 支持 Unicode 字符,按字符(而非字节)计数
联系我们

返回字符串 str 右边的 len 个字符。
str: string 类型len: int 类型,要返回的字符数量len 小于等于 0,返回空字符串len 大于字符串长度,返回完整字符串