python loop basic syntax

loop 1. Loop nesting 1. Implementation principle of loop nesting One external circulation and one complete internal circulation for x in range(5): for y in range(2, 5): print(x, y) ''' x Value range: 0, 1, 2, 3, 4 for the first time: x = 0 :Execute the corresponding of the loop body for loop,y The range of values is: ...

Posted by robinhood on Mon, 17 Jan 2022 18:50:57 +0100

Fundamentals of Python Programming: section 27 Format output Format

preface In the previous study, we have been exposed to the output format of str.format(). In this section, we will further learn the relevant contents of string printout, and feel the convenience of using str.format() output through a series of small examples. practice Let's first define two variables: animal = "cow" item = "moon" If ...

Posted by malcolmboston on Mon, 17 Jan 2022 18:08:32 +0100

Machine learning notes 1-0: Regression

*Note: this blog refers to Mr. Li Hongyi's 2020 machine learning course Video link Regression Model Regression model is used to obtain a mapping relationship between input data and output data y = ...

Posted by ram4nd on Mon, 17 Jan 2022 17:37:05 +0100

Python implements link prediction of protein interactions based on graph neural network

Guide IntroModelDatasetInstallCiteReference Intro At present, it mainly realizes link prediction based on protein data under [data/yeast/yeast.edgelist]. Model Model The model mainly uses graph neural network, such as gae, vgae, etc 1.GCNModelVAE(src/vgae): volume product self coding and variational volume product self coding (self codi ...

Posted by Avochelm on Mon, 17 Jan 2022 14:55:54 +0100

python log

The purpose of recording program log information is to: It is very convenient to understand the operation of the programIt can analyze the user's operation behavior, preferences and other informationIt is convenient for developers to check bug s 2. Introduction to logging level The logs can be divided into 5 levels, from low to high: DEBUGIN ...

Posted by frist44 on Mon, 17 Jan 2022 12:02:57 +0100

Niu Ke SQL [common interviewers tear SQL]

Written test question 66: latest login date of each person of Niuke (I) Detailed description: please write an sql statement to query the last login date of each user, and press user_id ascending sort Problem solving ideas Group by userid and take the maximum login time source code select user_id, max(date) from login group by user_id order ...

Posted by tapos on Mon, 17 Jan 2022 11:50:51 +0100

Python operation Excel library summary

Several common Excel libraries openpyxl, xlrd/xlwt, xlwings and xlsxwriter are explained in detail. In order to further understand the similarities and differences of each library, so that it can be used flexibly in different scenarios, this paper will horizontally compare 7 common modules that can operate Excel files, and consolidate learning ...

Posted by radi8 on Mon, 17 Jan 2022 11:38:24 +0100

Niu Sancun: how does python crawl the skin pictures of the hero League? Reptile combat!

I believe many of my friends are players who love the hero League. The skin production of the hero League is still relatively exquisite. Xiaobian, who has a collection hobby, plans to climb down the skin of the official website with a crawler. Next, let's see how Xiaobian uses python to climb the skin of the hero League! (python crawler source ...

Posted by djetaine on Mon, 17 Jan 2022 11:18:03 +0100

Color and moving object recognition system

Color and moving object recognition system 1. Development tools Python version: Anaconda's Python environment version 3.8 Development software: pycham Community Edition Recognition model: deep learning model, general learning model Related modules: opencv python = 3.4.8.29 module 2. Environmental construction Install Anaconda and add the path t ...

Posted by phpvolution on Mon, 17 Jan 2022 11:05:04 +0100

Pandas document learning

Pandas document learning 0. Introduction What is Pandas? Pandas is a powerful tool set for analyzing structured data; Its use is based on Numpy (providing high-performance matrix operation); It is used for data mining and data analysis, and also provides data cleaning function. One of the sharp tools: DataFrame DataFrame is a tabular data ...

Posted by Selkirk on Mon, 17 Jan 2022 07:47:30 +0100