[introduction to Python] Chapter 76 Python virtual environment

This article will introduce the concepts related to Python virtual environment. Why Python virtual environment Python will install all system packages in a directory, which is specified when installing python. Generally speaking, most system packages are located in sys In the directory specified by prefix. We can use the sys module to view th ...

Posted by Michiel on Thu, 10 Mar 2022 11:07:40 +0100

[programmer] how long has it been since I made a sincere confession? New confession artifact (make you cry ~)

Introduction There are 365 days in a year. One day comes when important festivals (such as Valentine's day, Tanabata...) Have you ever thought that one day, your lover will step on colorful auspicious clouds to confess to you (maybe a monkey)! Or ride a white horse and say "I love you" softly and gently to you (don't be happy too e ...

Posted by agentsmith on Thu, 10 Mar 2022 07:49:37 +0100

python Foundation: string (with code)

Write it in the front, Hello everyone! I'm Xlong, an engineering man in a non computer class. Since I have been learning python recently and have taken a lot of notes about python learning, I want to sort out a series of articles about its foundation, which is convenient for my daily review on the one hand, and also want to communicate and lear ...

Posted by dreamkiller23 on Wed, 09 Mar 2022 15:37:41 +0100

Tiff image processing 2_Python

Image data type conversion, image stretching and band judgment Through the pit... I won't mention it. Before the training of in-depth learning, when the data sets are almost completed, that is, downloading, labeling, cutting and screening are all finished. Sent to the network for training. Due to the inconsistency of data types, the prediction ...

Posted by f8ball on Wed, 09 Mar 2022 14:35:12 +0100

python basic data type built-in method

introduction Yesterday, I finished process control and talked about some of the simplest built-in methods of basic data types. Let's continue with the built-in method today. There are many built-in methods. Don't be afraid. As long as you use more, you will be able to write it when you think of it. String built-in method Remove leading and tr ...

Posted by benji87 on Wed, 09 Mar 2022 13:12:22 +0100

Detailed explanation of DataFrame of Pandas

Two dimensional data, Series container, with both row index and column index     1. Create DataFrame 1.1 create DataFrame through list You need to specify data, index row and columns Specify that data and index/columns are of type list or NP arange df1 = pd.DataFrame(data=[[1, 2, 3], [11, 12, 13]], index=['r_1', 'r_2'], colum ...

Posted by troy_mccormick on Wed, 09 Mar 2022 13:10:02 +0100

Object oriented Python

8. Class member descriptor (attribute) The member description of a class is a way to create a member property of a class for related operations in the class Get: operation to get the propertyset: modify or add attributesdelete: the operation of deleting attributesIf you want to use the member descriptor of a class, there are probably three ...

Posted by godfrank on Wed, 09 Mar 2022 12:35:05 +0100

python: trap Listing 2

Although Python does not have C/C + + pointers and various data type conversions, it does not mean that it does not have a smooth path. For beginners, when they lament the simplicity and power of python, they may fall into a trap accidentally. In order to warn the latecomers, various traps of Python are summarized to achieve the effect of &quot ...

Posted by corillo181 on Wed, 09 Mar 2022 11:09:40 +0100

Python simple Trojan

Python Trojan horse writing Problems encountered and Solutions Start with netcat Py file, which is prepared to imitate some kali tools net cat There was a problem. The code couldn't run out after writing, and the script couldn't be debugged with parameters. By adding print to correct the errors one by one, it was found that it was the blocki ...

Posted by DamienRoche on Wed, 09 Mar 2022 10:43:53 +0100

sklearn machine learning regression process based on python language

Using the sklearn package of python language to realize the basic machine learning operation is very simple. After all, we only need to call part of the source code. Basic machine learning operations are nothing more than four parts: Import corresponding packages and dataData preprocessing;Model establishment and fittingModel evaluation and p ...

Posted by pristanski on Wed, 09 Mar 2022 08:29:32 +0100