Task 25 - first reptile test

First question: use the requests library to visit Baidu homepage 20 times, and return the length of his text and content attributes.   1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue May 19 10:12:16 2020 4 5 @author: 49594 6 """ 7 8 import requests 9 url = "https://www.baidu.com/" 10 for i in range(20): 11 try: 12 rest ...

Posted by RDx321 on Tue, 19 May 2020 07:45:21 -0700

jQuery foundation of front end development

[contents] 1, About jQuery 2, Basic use of jQuery   1, About jQuery 1. Introduction jQuery encapsulates the native js code (with many additional functions)Can let you write less code to complete js operation Similar to the module in python, the front-end module is not called "class library" If you are compatible with mult ...

Posted by wreed on Tue, 19 May 2020 07:01:07 -0700

Python built in function example

abs() Return the absolute value of the number >>> abs(-100) 100 >>> abs(10) 10 >>> all() Determines whether all elements in the given iteratable parameter iterable are true, and returns true if so, False otherwise >>> all([100,100,100]) True >>> all([3,0,1,1]) False >>> any() Returns False ...

Posted by ALEXKENT18 on Tue, 19 May 2020 02:21:17 -0700

Getting started with Pandas 1 (DataFrame+Series read / write / Index+Select+Assign)

Article catalog 1. Creating, Reading and Writing one point one Dataframe data framework one point two Series series one point three Reading reading reading data 2. Indexing, Selecting, Assigning two point one Access to python like mode two point two Unique access mode of pandas 2.2.1 Iloc access base ...

Posted by MetaDark on Tue, 19 May 2020 00:11:01 -0700

Understanding Go language object-oriented programming: interface and polymorphism

Hi, Hello, this is Mingo. During my time of learning Golang, I wrote detailed study notes on my personal WeChat official account "Go programming time". For Go language, I am also a beginner, so writing things should be more suitable for students who are just in contact. If you are just learning Go language, do not pay close attention ...

Posted by elementaluk on Mon, 18 May 2020 21:49:47 -0700

Practical case: Python easily realizes PDF format conversion (with detailed source code)

    preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Project background Online PDF conversion tools are dazzling, difficult to choose, some e ...

Posted by alexboyer on Mon, 18 May 2020 08:26:28 -0700

8-5 (December 15) 16.1 multi process message queuing 16.2 message queuing pipe

Eight five classes (December 15) 16.1 multi process message queue Message queuing is a container that holds messages during their transmission. The most classic use of message queuing is to pass messages through message channels between consumers and producers. Consumers and producers are different processes. Produ ...

Posted by Skunkmaster on Mon, 18 May 2020 08:04:27 -0700

Go's 50 holes: pitfalls, tips and common mistakes for new Golang developers [1]

Go is a simple and interesting language, but like other languages, it has some skills... Most of these techniques are not due to go's flaws. If you used to use other languages, some of these mistakes are natural pitfalls. Others are caused by false assumptions and lack of detail. If you take the time to learn the language, read official notes, ...

Posted by immanuelx2 on Mon, 18 May 2020 08:06:01 -0700

Cool!! I can import packages in Python in eight ways. How about you?

WeChat official account: Python programming time. Original link: https://mp.weixin.qq.com/s/7F4pyDVObJBt-3XrxxYxLQ Today, I'd like to introduce eight methods of Python package import that I've used. 1. Direct import A well-known method, which can be imported directly >>> import os >>> os.getcwd() '/home/wangbm' Similarly, l ...

Posted by kenshintomoe225 on Sun, 17 May 2020 20:51:12 -0700

Real time prediction of bitcoin price using LSTM framework

Warm tip: this case is only for learning and research purposes, and does not constitute an investment proposal. The price data of bitcoin is based on time series, so the price prediction of bitcoin is mostly realized by LSTM model. Long term short-term memory (LSTM) is a kind of deep learning model especially suitable for time series data (or ...

Posted by rubik on Sun, 17 May 2020 19:59:36 -0700