python为啥标题要这么长?

释放双眼,带上耳机,听听看~!

<pre>
def login(request):
if request.method == “GET”:
return render(request, ‘login.html’)
elif request.method == “POST”:
username = request.POST.get(‘username’,”)
password = request.POST.get(‘password’,”)
print username, password

models.UserInfo.objects.create(user=username, password=password)

    result = models.UserInfo.objects.filter(user=username,password=password)
    resulta = models.UserInfo.objects.filter(user=username,password=password).first()
    if result:
        print result
        print resulta
    else:
        return HttpResponse('用户名或密码错误')
return render(request, 'index.html', {'result': result})</pre>

【转自慕课】https://www.imooc.com

Python

Python中单线程、多线程和多进程的效率对比实验

2022-3-3 10:13:14

Python

python爬虫实践——零基础快速入门(二)爬取豆瓣电影

2022-3-3 10:15:56

搜索