class Echo():
def __init__(self, name):
self.name = name
print("Hello {}!".format(name))
def __len__(self):
n=0
name=self.name
for i in name:
if i.isupper()==True:
n=n+1;
print("Hello {}!".format(n))
s = input()
echoA = Echo(s)
len(echoA)
想问一下各位,为何会报这个错'NoneType' object cannot be interpreted as an integer
BIG阳
弑天下
相关分类