互联网技术 / 互联网资讯 · 2024年1月27日

Python内置函数-unichr() 函数的云计算开发指南

描述

unichR() 函数 和 chR() 函数功能基本一样, 只不过是返回 unicode 的字符。

注意: Python3 不支持 unichR(),改用 chR() 函数。

语法

以下是 unichR() 方法的语法:

unichR(i)

参数

i — 可以是10进制也可以是16进制的形式的数字。

返回值

返回 unicode 的字符。

实例

以下展示了使用 unichR() 方法的实例:

云计算开发:Python内置函数-unichr() 函数详解

OpenMagic API

Need more than content? Move into the product flow.

If you are here for model access, pricing, developer docs, or the future API console, the dedicated product path now lives on api.openmagic.ai.

登录免费注册