为什么我们在用lamp环境的时候,访问php页面需要返回Hello World,直接在文件里写echo 'Hello World'就可以,而django却需要
from django.http import HttpResponse
def index(request):
return HttpResponse('Hello World')
~
这样呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。