📅  最后修改于: 2022-03-11 14:46:21.658000             🧑  作者: Mango
>>> from functools import partial
>>> basetwo = partial(int, base=2)
>>> basetwo.__doc__ = 'Convert base 2 string to an int.'
>>> basetwo('10010')
18