Object oriented (oop)

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 3. ...

Posted on Fri, 17 Jan 2020 05:46:41 -0800 by fil

Application of reinforcement learning in advertising click business

Application of reinforcement learning in advertising click business Business scenario 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

Activity arrangement greedy algorithm visualization

previously on 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 Greedy Algorithm Language: python Third party libraries for visualization: numpy,matplotlib Start t ...

Posted on Thu, 16 Jan 2020 00:47:43 -0800 by gushy

Teach Saltstack Web Management 1 (Module Management)

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

Use Python crawlers to crawl simple Web pages (Getting started with Python crawlers)

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: import requests url = "https://item.jd.com/6957643.html" try: r = requests.get(url) r.raise_f ...

Posted on Wed, 15 Jan 2020 08:13:43 -0800 by mikeT

Five minutes to get started with the rust language

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

Front end HTML&CSS basic summary

HTML Grammar ① 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

Django entry diary Day3

User registration 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: 'users.apps.UsersConfig', Add a path for the new app in urls.py. Add t ...

Posted on Tue, 14 Jan 2020 02:43:45 -0800 by purpendicular

python crawler -- requests library using agent

Before reading this article, you need to master the knowledge and skills: python Fundamentals html Foundation http status code   Let's take a look at the knowledge points in this article: get method post method header parameter, simulating user Data parameter, submit data Proxies parameter, using proxies Advanced learning Install the reques ...

Posted on Mon, 13 Jan 2020 23:45:18 -0800 by helppy

Python Practice Series

Python standard library Numpy tutorial Tensorflow API   Catalog 1, yield: 2, tf.constant: 3, tf.stack and tf.unstack: 4, tf.tensordot: 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: 6 ...

Posted on Mon, 13 Jan 2020 19:38:43 -0800 by arion279