📜  python partial - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:21.658000             🧑  作者: Mango

代码示例1
>>> from functools import partial
>>> basetwo = partial(int, base=2)
>>> basetwo.__doc__ = 'Convert base 2 string to an int.'
>>> basetwo('10010')
18