Python long() 函数
Python 教程
· 2019-02-01 15:59:42
描述
long() 函数将数字或字符串转换为一个长整型。
语法
long() 函数语法:
class long(x, base=10)
参数
- x -- 字符串或数字。
- base -- 可选,进制数,默认十进制。
返回值
返回长整型数。
实例
以下实例展示了 long() 的使用方法:
>>>long()
0L
>>> long(1)
1L
>>> long('123')
123L
>>>
>>>
点击查看所有 Python 教程 文章: https://www.codercto.com/courses/l/8.html
Game Programming Patterns
Robert Nystrom / Genever Benning / 2014-11-2 / USD 39.95
The biggest challenge facing many game programmers is completing their game. Most game projects fizzle out, overwhelmed by the complexity of their own code. Game Programming Patterns tackles that exac......一起来看看 《Game Programming Patterns》 这本书的介绍吧!