我是 python 新手,如果这是一个愚蠢的问题,请原谅。
我遇到了在 def new_function() 语句之上有 @other_functions 的 python 代码。有人可以解释一下它的含义吗?
如本例所示:
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_http_methods
@csrf_exempt
@require_http_methods(["post"])
def my_new_function(request):
....
....