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
Head First Design Patterns
Elisabeth Freeman、Eric Freeman、Bert Bates、Kathy Sierra、Elisabeth Robson / O'Reilly Media / 2004-11-1 / USD 49.99
You're not alone. At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire),......一起来看看 《Head First Design Patterns》 这本书的介绍吧!