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

代码示例:

print(bin(10))


运行结果:

F:\dev\python\python.exe F:/pyCharm/practice/config_dir/zip_demo.py
0b1010

Process finished with exit code 0

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2018-09-27
  • 2019-06-24
  • 2021-10-08
猜你喜欢
  • 2022-01-21
  • 2021-10-08
  • 2022-01-07
  • 2022-02-16
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案