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

Python内置函数-bin() 函数详解

描述

BIn() 返回一个整数 int 或者长整数 long int 的二进制表示。

语法

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

BIn(x)

参数

x — int 或者 long int 数字。

实例

以下展示了使用 BIn 函数的实例:

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

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.