Django realizes Alipay payment (sandbox environment)
1. Create application and sandbox environment
Sandbox application: https://openhome.alipay.com/platform/appDaily.htm?tab=info
Code scanning registration
Sandbox account number: https://openhome.alipay.com/platform/appDaily.htm?tab=account
The quota can be modified
2. Alipay development documentation
Document home page: https://openhome ...
Posted by EnDee321 on Sun, 31 Oct 2021 19:42:02 -0700
4. Basic data types for getting started with Python syntax
An introduction
We learn variables so that the computer can remember a certain state of things like people, and the value of variables is used to store the state of things. Obviously, the state of things is divided into different types (such as people's age, height, position, salary, etc.), so the value of variables should also have dif ...
Posted by dzelenika on Sun, 31 Oct 2021 11:21:46 -0700
pandas hierarchy index
pandas notes 007
7, Hierarchical index
import pandas as pd
import numpy as np
1. Hierarchical indexing
1.1 Series
When creating a Series, use Index to specify the internal and external indexes. The first inner list is the outer Index, and the second inner list is the inner Index.
data = pd.Series(np.random.randn(9),
i ...
Posted by Poomerio on Sun, 31 Oct 2021 11:07:46 -0700
Application development based on python and MySQL database: student information score management system version 1.0
preface
python is an interpretative and object-oriented programming language, which can be applied to many life and work scenes to meet people's different needs. MySQL is an open source and free relational database, which is deeply trusted by users and enterprises. However, the establishment of database (or table) and the use of operati ...
Posted by Plakhotnik on Sun, 31 Oct 2021 10:55:40 -0700
Record the experience of configuring the server for a big innovation project
This is an article on configuring the server environment (for Python projects) (nanny tutorial)
I can only say that configuring the server is really too simple. Just have a hand
1: Prepare the necessary documents
The documents are as follows:
DockerfileProject coderequirements.txt
As shown in the figure:
You need to create these three ...
Posted by whisher06 on Sun, 31 Oct 2021 09:53:33 -0700
12 advanced type variables
Objectives: 1. List 2. Tuple 3. Dictionary 4. String 5. Public method 6. Advanced variable
In python, all non numeric variables have the following characteristics: ① Is a sequence, which can also be understood as a container ② Value [] ③ Traverse for in ④ Calculation length, Max / min value, comparison, deletion ⑤ Connect + and repeat* ⑥ Slice ...
Posted by kokomo310 on Sun, 31 Oct 2021 07:17:51 -0700
Code analysis of HyperLPR license plate recognition library
2021SC@SDUSC
Source code download address: https://gitee.com/zeusees/HyperLPR
See the first analysis for details of source code configuration
The content of this article will continue to be analyzed according to the tasks assigned by the group, as follows:
1, bitwise_not(...)
For al ...
Posted by glennn3 on Sun, 31 Oct 2021 06:03:21 -0700
Solution to python Memory Error
when using python to process data, sometimes large data sets may be encountered, and the problem of Memory Error may occur. After my attempt, I summarize the following schemes:
1. Modify the length of data type
modify the length of the data type to compress the data in memory, so as to reduce the occupation of memory.
imp ...
Posted by hairyjim on Sun, 31 Oct 2021 05:48:37 -0700
python Basics - if, while, for loop exercise 2021-10-31
1, Simple arithmetic practice
1: Input two variables on the console and exchange the values of these two variables [complete with XOR]
#The console inputs two variables and exchanges the values of the two variables
#[complete with XOR]
print("Please enter a,b Value of: ")
a = int(input("Please enter a Value of"))
b = int(input("Please enter b ...
Posted by sevenupcan on Sun, 31 Oct 2021 03:51:09 -0700
Explanation and implementation of genetic algorithm (python)
introduction
In my opinion, genetic algorithm is an algorithm that can be considered when adjusting parameters. It is a method that can find the global optimal parameters. When the data range that needs to be adjusted is large, the exhaustive method is obviously not a good choice! Here, the genetic algorithm is implemented through a simple exa ...
Posted by Catz on Sun, 31 Oct 2021 03:22:08 -0700