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