Python3---内建函数---bin()

前言

该文章描述了函数bin()

2020-01-16

天象独行

  0X01;描述

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

  0X02;语法

    bin(x)

    参数:

      x -- int 或者 long int 数字

  0X03;举例:

print(bin(10))
C:\Users\aaron\Desktop\Pytoon-cade\venv\Scripts\python.exe C:/Users/aaron/Desktop/Pytoon-cade/urllib-Study.py
0b1010

Process finished with exit code 0

猜你喜欢

转载自www.cnblogs.com/aaron456-rgv/p/12202551.html