python import 错误 TypeError: 'module' object is not callable 在这里,有 Person.py test.py; 在 test.py 里面 import Person 总是调用方法出错 Person.py class Person: def __init__(self,name): self.name = name print('this name is ',name) def hello(self): print('hello pytho…
文件: 代码: import pprintmessge = 'It was a bringht cold day in April,and the clocks were striking thrirteen'count = {}for char in messge: count.setdefault(char,0) count[char] = count[char]+1pprint.pprint(count) 报错: Traceback (most recent call last): Fil…