1. OOP (object oriented programming)
Process oriented: - focus on how to do it?
1. Gradually implement all the steps to complete a requirement from the beginning to the end
2. According to the development requirements, some function independent codes are encapsulated into one function after another
Posted on Fri, 17 Jan 2020 05:46:41 -0800 by fil
Application of reinforcement learning in advertising click business
The purpose of advertising is to maximize the possibility of customers' clicking and show them what they may be interested in. Suppose a small e-commerce website has ten different sections corresponding to these di ...
Posted on Fri, 17 Jan 2020 02:35:22 -0800 by GeoffOs
There are n activities (assuming that n is large and manpower arrangement is difficult)
The start time and end time of n activities are known
But I also want to make full use of resources and arrange the largest number of activities
Third party libraries for visualization: numpy,matplotlib
Start t ...
Posted on Thu, 16 Jan 2020 00:47:43 -0800 by gushy
Write in the title: I touched Puppet in 2011 and lamented that Americans have a higher understanding of automation than we are.In 2015, I touched Saltstack and exclaimed again.Saltstack didn't have Web management like Puppet Foreman at that time, and since then I've had a small goal, I want to copy For ...
Posted on Wed, 15 Jan 2020 17:44:33 -0800 by hoyo
Today, let's take a look at using Python to crawl some simple web pages.
Tool used: IDLE (Python 3.6 64-bit)
1. Crawl Jingdong Commodity Page
What I'm going to crawl is the information on this Tokyo merchandise page, coded as follows:
url = "https://item.jd.com/6957643.html"
r = requests.get(url)
Posted on Wed, 15 Jan 2020 08:13:43 -0800 by mikeT
1. Pit rust
1.1 development history of rust
In 2006, Mozilla employee "Graydon Hoare" developed Rust.
On May 15, 2015, the core team of the programming language of Rust officially announced the release of the version of Rust 1.0, and then won the first prize in the "favorite programm ...
Posted on Wed, 15 Jan 2020 05:22:47 -0800 by sonnieboy
① Document suffix. html or. htm
② Labels are divided into:
Containment label: there are start and end labels, such as < HTML ></html>
Autism and tag: start tag and end tag are together, such as < br / >
③ Labels can be nested
④ Define the attribute in the start tag. ...
Posted on Tue, 14 Jan 2020 20:37:06 -0800 by jacko
1. I nitializing a Django App
From the command line, cd to the project folder, and then:
>python manage.py startapp users
Register a new app in settings.py. Add the following to the installed? APS list:
Add a path for the new app in urls.py. Add t ...
Posted on Tue, 14 Jan 2020 02:43:45 -0800 by purpendicular
Before reading this article, you need to master the knowledge and skills:
http status code
Let's take a look at the knowledge points in this article:
header parameter, simulating user
Data parameter, submit data
Proxies parameter, using proxies
Install the reques ...
Posted on Mon, 13 Jan 2020 23:45:18 -0800 by helppy
Python standard library
3, tf.stack and tf.unstack:
5, For multiple class arrays of the same dimension, the order is scrambled at the same time, but the one-to-one correspondence between them is maintained:
Posted on Mon, 13 Jan 2020 19:38:43 -0800 by arion279