python 遇到问题解决:object is not callable

解决TypeError: ‘NoneType’ object is not callable为什么会出现这个错误,原来是去掉pri函数的括号即可,因为do_twice()函数的形参不是函数必须去掉括号。程序如下:
相关文章
相关标签/搜索