django-rest_framework - Request and response

Requests and responses Request object The REST framework introduces a Request object, which extends the ordinary HttpRequest and provides more flexible and clear parsing. The core function of the Request object is request.data Property, which corresponds to the request.POST Similar, but more useful ...

Posted by NFD on Sun, 14 Jun 2020 01:32:55 -0700

Gradient descent + regression

First of all, understand what is return. The purpose of regression is to predict the target value of another numerical data through several known data. Suppose that the characteristic and the result satisfy the linear relation, that is to say, the independent variable of the formula is the known data x ...

Posted by smitho on Sun, 14 Jun 2020 00:58:52 -0700

This paper grasps the methods of data horizontal merging by various common softwares

There is a recorded video at the end of the article. If you are not comfortable with the article, you can slide to the end of the article and watch the video. I hope you like it~ In the work, we often meet the need of merging multiple tables into one table; in the interview, we are sometimes asked by th ...

Posted by minus4 on Sat, 13 Jun 2020 23:34:35 -0700

[python exercise, 6.14] (class exercise)

1. Check the continuous repetition of words in a word document. In the word document, there are often repeated words in the document due to careless keyboard operation, such as "user's information" or "user input required". Use the extension library Python docx to check the word docu ...

Posted by kazuki on Sat, 13 Jun 2020 22:26:46 -0700

Write a beauty testing tool in Python

We know that there are some websites or software that use photos to test the beauty. In fact, this function can be realized by using python. In this article, we use Python to write a beauty test widget. brief introduction There are two ways to realize the beauty test function: one is to write the test function by yourself, and the other is to r ...

Posted by rigy73 on Sat, 13 Jun 2020 20:27:35 -0700

Minimal Python syntax

7. Using regular expressions in Python 7.1 regular expression When dealing with strings, we often use the need to find strings that meet some complex rules. Regular expressions are tools for describing these rules. Regular expressions are the code used to record text rules. 7.1.1 line locator The ...

Posted by philipolson on Sat, 13 Jun 2020 04:41:18 -0700

Python office automation 2.2 Python 10 minute quick start: Python common syntax and regular expressions

Article catalog 2.2 Python 10 minute quick start 2.2.1 input, output and notes 2.2.2 calling functions of this file 2.2.3 call functions of other files in this file path 2.2.4 calling functions in other files under subdirectory 2.2.5 data types and variables 2.2.6 condition judgment 2.2.7 cycle ① f ...

Posted by leafer on Sat, 13 Jun 2020 03:32:07 -0700

Still worried about looking for a house, click to collect information one by one on the web page? Learn python, one click crawler

In the era of information explosion, how can you obtain effective information efficiently? This small case also uses two key databases in python, requests and beautiful soup, to initiate requests and analyze web data. The little partners who are not familiar with the use of these two databases can c ...

Posted by monotoko on Sat, 13 Jun 2020 00:20:30 -0700

Learn these Python art skills and wait for your girlfriend to praise you

1, Foreword Python has many libraries for image processing, such as pilot or OpenCV. Most of the time, it's useless to learn these image processing modules, but you don't know how to use them. Today, I've brought you some art skills to make your art come true. The circle of friends is full of praise. My girlfriend also praises you. How powerful ...

Posted by neutra on Fri, 12 Jun 2020 22:59:48 -0700

Data insight | Python interpretation stall - do you want to set up a stall to sell anything?

I know there is a problem: after the epidemic, what is the most thing you want to do? Many people study python and don't know where to start.Many people learn python, master the basic syntax, do not know where to find cases to start. Many people who have already done cases do not know how to learn m ...

Posted by titel on Fri, 12 Jun 2020 02:21:10 -0700