Python Project Ⅰ 1: generate data

15.1 installing matplotlib import matplotpip 15.2 draw line chart import matplotlib.pyplot as plt squares=[1,4,9,16,25] plt.plot(squares) plt.show() The pyplot module contains functions for generating charts plot(): draw a graph show(): display graphics 1. Modify labels and lines # coding=gbk iUTF-8...

Posted by Raphael diSanto on Wed, 29 Sep 2021 23:03:08 +0530

day12 function advanced

day12 function advanced (9.29) 1.review """ def Function name (formal parameter list): Function description document Function body """ # 1. Return value (generate new data) """ return Data 1, data 2,... (formed tuple, omitting parentheses) Function name (data1, data2, data3 Function name (argumUTF-8...

Posted by shwathi on Wed, 29 Sep 2021 23:55:52 +0530

September 29, 2021 [class attribute and class method] [class attribute, statistics, create multiple objects in total] [class method and static method] [case method summary]

Class properties and class methods Class structure Class properties and instance properties Class methods and static methods Class properties and instance properties 2.1 concept and use A class attribute is an attribute defined in a class object Usually used to record features related to this UTF-8...

Posted by MisterWebz on Thu, 30 Sep 2021 00:06:19 +0530

3, Preprocessing of OpenCV image -- binarization and adaptive threshold

Definition: image binarization is to set the gray value of pixels on the image to 0 or 255, that is, to present the whole image with obvious visual effects of only black and white. An image includes target object, background and noise. In order to directly extract the target object from a multiUTF-8...

Posted by bradlybrown on Thu, 30 Sep 2021 02:44:22 +0530

The way of learning python

Basic grammar identifier Identifier definition rule: The identifier consists of letters, numbers and underscoresThe first character consists of a letter and an underscore. A number cannot be the beginning of an identifierCase sensitiveReserved words cannot be used (reserved words: self owned iUTF-8...

Posted by Seol on Thu, 30 Sep 2021 03:27:33 +0530

DES encryption and decryption algorithm based on Python (including detailed explanation of principle)

DES algorithm is a symmetric encryption algorithm (the encryption key is the same as the decryption key). The encryption process requires that the key length and the length of the data to be encrypted are 64 bits. Therefore, before encrypting with DES algorithm, it is necessary to cut the dataUTF-8...

Posted by renny on Thu, 30 Sep 2021 09:09:24 +0530

[python learning] python list type

Chinese history [battle of Sakai Quan]: In the process of conquering all ethnic groups in the Central Plains, the Yellow Emperor fought a war with the two tribes of the Yan Emperor in Hanquan. Through this war, the Yellow Emperor defeated the Yan Emperor and replaced the Yan Emperor as the leadUTF-8...

Posted by zipdisk on Thu, 30 Sep 2021 09:31:09 +0530

Reptile basic learning

1, Reptile Foundation 1. Basic principles of HTML 1.1.URI and URL URI uniform resource identifier, URL uniform resource locator URLs are subsets of URIs. Each URL is a URI. The URI also includes a subclass called URN, which is a unified resource name. URN only names resources and does not locatUTF-8...

Posted by TomNomNom on Thu, 30 Sep 2021 09:32:57 +0530

Tianchi data - earphone emotion analysis

import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline df = pd.read_csv('./earphone_sentiment.csv',encoding='utf-8') df.head() content_idcontentsubjectsentiment_wordsentiment_value00Silent Angel looks forward to your comUTF-8...

Posted by mellis95 on Thu, 30 Sep 2021 23:58:25 +0530

PyCharm settings after Using SSH key password free login to the springboard and server

After tossing around for two or three days, I wanted to be lazy and set up a secret free login springboard machine and server to directly ssh. As a result, I found that PyCharm could not be set up and the code could not be synchronized. After a few days of query, a solution was finally found. TUTF-8...

Posted by optimus on Fri, 01 Oct 2021 23:12:47 +0530