【发布时间】:2023-04-10 19:19:01
【问题描述】:
在django.utils.functional.py:
for t in type(res).mro(): # <----- this
if t in self.__dispatch:
return self.__dispatch[t][funcname](res, *args, **kw)
我不明白mro()。它有什么作用,“mro”是什么意思?
【问题讨论】:
标签: python method-resolution-order