Vi Python built-in functions

1. Mathematical operation function Introduction to built-in functions: Built in functions, which are built-in functions after Python installation All built-in function usage websites officially provided by Python: https://docs.python.org/zh-cn/3/library/functions.html Common mathematical operation functions: 1.abs() - find the absolute ...

Added by Virii on Mon, 31 Jan 2022 15:24:24 +0200

Django learning record 14

Relational mapping The relational mapping in the database can be one-to-one, one to many and many to many. 1, One on one When two tables have a one-to-one relationship, define a foreign key inside any model class. Create a one-to-one mapping: class A(models.Model): pass class B(models.Model): a=models.OneToOneField(A,on_delete=***) Aft ...

Added by outpost on Mon, 31 Jan 2022 14:44:19 +0200

Isn't it fragrant to draw a map with BaseMap

I. Preface Using basemap to draw a map is simple and convenient. Using basemap needs to be combined with other libraries. The common one is matplotlib; After reading this article, readers will learn to simply use basemap or world map, country map, province and even specific region, etc; If the author's article is good, please praise and pay at ...

Added by Yossarian on Mon, 31 Jan 2022 13:03:26 +0200

Introduction to algorithm - array, linked list, selection and sorting

catalogue How memory works Arrays and linked lists array Linked list Compare Overall comparison Time complexity Implementation of linked list in python test Select sort Summary How memory works When you go to the supermarket, you should see a storage cabinet at the door. When you go to the supermarket, you store your things in t ...

Added by beboni on Mon, 31 Jan 2022 12:27:39 +0200

Implementation of keras version of DeepLab-V3 + semantic segmentation Neural Network

Implementation of keras version of DeepLab-V3 + semantic segmentation Neural Network network structure Deeplab series network models are developed from ResNet residual module, and on this basis, they are integrated with the implementation of empty convolution. Compared with Deeplab v3, Deeplab v3 + introduces the encoder decoder structure c ...

Added by phorman on Mon, 31 Jan 2022 09:09:55 +0200

03 judgment and loop | introduction to Python

This chapter discusses two basic program structures, judgment and loop. Condition control if statement When the condition is true, execute the code after if; Otherwise, do not execute. if condition: code When condition is True, execute code. cel = int(input('Enter today's temperature:')) if cel >= 30: print('Turn on the air co ...

Added by greggustin on Mon, 31 Jan 2022 08:53:00 +0200

Python Simpy simulation enables AGV to run to the specified power to charge

Python Simpy simulation of AGV running process 1, Achieve the purpose simpy provides a discrete-time simulation library. I want to use this simulation library to simulate the operation process of AGV in the workshop. A simple scenario can be described as: the simulation time starts, the AGV with an initial power of a certain value starts to r ...

Added by departedmind on Mon, 31 Jan 2022 08:50:40 +0200

7 lines of code teach you to climb [hero alliance official website] in Python: ① master crawler technology; ② Learn Python data visualization

Hello, I'm Mingyue 14th bridge!! Areas of expertise: python black technology, big data back-end research and development, data warehouse Today's focus: ① master the crawler technology, experience the python crawler process, and climb when you can see it; ② learn to use python data visualization. Friends with questions are welcome to c ...

Added by bruceg on Mon, 31 Jan 2022 08:15:36 +0200

Advanced Python language

Important knowledge points Usage of generating formula (derivation) prices = { 'AAPL': 191.88, 'GOOG': 1186.96, 'IBM': 149.24, 'ORCL': 48.44, 'ACN': 166.89, 'FB': 208.09, 'SYMC': 21.29 } # Construct a new dictionary with stocks with a stock price greater than 100 yuan prices2 = {key: value for key, value in prices. ...

Added by flashbot on Mon, 31 Jan 2022 08:10:05 +0200

[beginners learn PyTorch tutorial] I. Basic operation of PyTorch

@Author: Runsen What is PyTorch? This is a Python based scientific computing package for two groups of audiences: NumPy is an alternative to take advantage of the power of GPU. Provide a deep learning research platform with maximum flexibility and speed. tensor Tensors are similar to NumPy's n-dimensional array. In addition, tensors ca ...

Added by MishieMoo on Mon, 31 Jan 2022 07:12:12 +0200