Python oct() 函数
Python 教程
· 2019-02-01 19:43:23
描述
oct() 函数将一个整数转换成8进制字符串。
语法
oct 语法:
oct(x)
参数说明:
- x -- 整数。
返回值
返回8进制字符串。
实例
以下实例展示了 oct 的使用方法:
>>>oct(10)
'012'
>>> oct(20)
'024'
>>> oct(15)
'017'
>>>
点击查看所有 Python 教程 文章: https://codercto.com/courses/l/8.html
A Common-Sense Guide to Data Structures and Algorithms
Jay Wengrow / Pragmatic Bookshelf / 2017-8-13 / USD 45.95
If you last saw algorithms in a university course or at a job interview, you’re missing out on what they can do for your code. Learn different sorting and searching techniques, and when to use each. F......一起来看看 《A Common-Sense Guide to Data Structures and Algorithms》 这本书的介绍吧!