您的位置:首页 > 产品设计 > UI/UE

[Built-in Functions] - P

2015-11-27 11:26 330 查看


[Built-in Functions] - P

pow(x, y[, z])

本函数是计算x的y次方,如果z在存在,则再对结果进行取模,其结果等效于pow(x,y) %z。

print(*objects, sep=' ', end='\n', file=sys.stdout)

Print objects to the stream file,separated by sep and followed by end.

sep,end and file, if present, must be given as keyword arguments.

>>> print("Hello", "world!", sep='#', end='$')
Hello#world$


property([fget[, fset[,fdel[, doc]]]])

见 [基础] - Python中的@property。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: