python programming foundation 1

Print printing print("Hello world! "" #Output results Hello world! #Assignment and printing name = "Lai qingbo" print("My name is",name) #Output result My name is Lai qingbo #Assignment and printing name = "Lai qingbo" name2 =name print("My name is",name2) #Output result My name is La ...

Posted by DarkShadowWing on Wed, 19 Feb 2020 09:54:09 -0800

Python Learn 06.10:Python property() Function: Define Variables

In the previous chapters, we have been accessing variables defined in classes in the form of class objects. variables, which is inappropriate because it violates the principle of class encapsulation.Normally, a class contains variables that should be hidden, allowing only indirect access to and manipulation of class variables through methods pr ...

Posted by listenmirndt on Wed, 19 Feb 2020 09:30:51 -0800

Docker installs Logstash and connects to Elasticsearch

1. Pull the Logstash image (keep consistent with ES version) docker pull logstash:7.5.1 2. Start the container docker run --name logstash -d -p 5044:5044 --net esnet 8b94897b4254 The network set by -- net in the command should be consistent with ES and kibana 3. Modify Logstash configuration file // 0.0.0.0: allow any IP access http.host: "0.0 ...

Posted by olivarespablo on Wed, 19 Feb 2020 08:42:59 -0800

Analysis of generating tag cloud code based on Python 3

This article mainly introduces the generation of tag cloud code analysis based on Python 3. The example code is introduced in detail in this article, which has a certain reference learning value for everyone's study or work. You can refer to the following for friends who need it Tag cloud is the most po ...

Posted by jerbecca on Wed, 19 Feb 2020 08:19:56 -0800

Python crawler learning - crawl the public service platform of construction market supervision

Python crawler learning - crawl the public service platform of construction market supervision The code is only for learning and communication. Please do not use it for illegal purposes. In case of infringement, please click here Contact author delete The code is only for learning and communication ...

Posted by Tubby on Wed, 19 Feb 2020 08:16:37 -0800

Promise, Fetch introduction and learning summary, involving Express build interface

Send native Ajax request based on Promise // Send native Ajax request based on Promise function queryData(url) { //resolve successful callback function reject failed callback function var p = new Promise(function(resolve, reject){ var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(){ ...

Posted by clip on Wed, 19 Feb 2020 08:14:39 -0800

linux foundation week 6

1. Self built yum warehouse, network source and local source respectively Steps to create yum warehouse: 1) mount Centos system CD to a directory or copy network resources to a directory 2) find the repodata directory, which is located in the upper directory of yum warehouse address (network sharing is required if creating a network warehouse ...

Posted by Nay on Wed, 19 Feb 2020 07:36:39 -0800

Learning notes of "hands on deep learning"

Text preprocessing Common four steps: Read in text participle Build a dictionary to map each word to a unique index Convert the text from the sequence of words to the sequence of indexes to facilitate the input of models import collections import re def read_time_machine(): with open('/ho ...

Posted by prasitc2005 on Wed, 19 Feb 2020 07:27:36 -0800

CentOS7 installation and operation Docker

1. Confirm kernel version CentOS7 kernel is generally 3.10, which meets the installation conditions (> = 3.8) uname -r //perhaps uname -a 2. update pack yum unpdate -y This process may be a little slow. If there is a higher version of kernel, it will update back to 3.10 View the current default kernel grub2-editenv list Changed to newer k ...

Posted by jameslloyd on Wed, 19 Feb 2020 06:38:38 -0800

Spring boot integrates WEB Development -- start task system

Introduction: There are some special tasks that need to be performed when the system starts, such as the loading of configuration files, database initialization and other operations. If spring boot is not used, these problems can be solved in the Listener. Spring boot provides two solutions: CommandLineRunner and ApplicationRunner. The two diff ...

Posted by LucienFB on Wed, 19 Feb 2020 06:36:46 -0800