def store(data,full_name):
names=full_name.split()
if len(names)==2:names.insert(1,'')
labels=['first','middle','last']
for label.name in zip(labels.names):
people=lookup(data,label,name)
if people:
people.append(full_name)
else:
data[label][name]=[full_name]
为什么运行的时候总是说label、init未定义等一系列错误,求指导
千万里不及你
收到一只叮咚