Python:我不断收到TypeError:-:“ builtin_function_or_method”和“ int”不受支持的操作数类型。我的代码有什么问题? [关闭]

userNameAndAge = {"Peter": 38, "John": 51, "Alex": 13, "Alvin": "NotAvailable"}
for index, names in enumerate(userNameAndAge):
    if index == userNameAndAge[len-1]:
        print(index, names)
评论