[Built-in Functions] - P

来源:互联网 发布:孢子中文版for mac 编辑:程序博客网 时间:2024/06/05 12:20

[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。



0 0
原创粉丝点击