Using python and Baidu maps to obtain the driving distance between cities in batches

Because I don't have any programming foundation, and my goal is to climb the driving distance between more than 300 cities in China, and I only have txt from these cities at present, I encounter many difficulties today. The first is how to get the driving distance between cities, the second is how to import excel into python, and how to establ ...

Added by Zoofu on Sat, 23 Oct 2021 11:13:19 +0300

Hot update of Python in game

Introduction: Hot update is to add new functions to the game or fix bug code without restarting the server. The fast iteration speed of game update has given birth to the demand for hotter technology. In the game projects I have experienced, whether it is the server or the client, the version update is around hotter update. Especially now th ...

Added by shergar1983 on Sat, 23 Oct 2021 11:12:35 +0300

python thread caught sub thread exception

demand When python is multithreaded, the sub thread is abnormal, and the main thread still executes downward normally, which obviously does not comply with the engineering code. In order to solve the problem of sub thread exceptions, today's content is added: capture sub thread exceptions. problem Look directly at the code: def thread_text( ...

Added by MisterWebz on Sat, 23 Oct 2021 09:25:05 +0300

python test development django-158.celery learning and use

preface Celery is a simple, flexible and reliable distributed system, which is used to process a large number of messages and provide the tools required for operation and maintenance of such systems. It is a task queue, which focuses on real-time processing and supports task scheduling. You can use scenarios such as: Send e-mail asynchronousl ...

Added by Agtronic on Sat, 23 Oct 2021 06:59:43 +0300

CGAN implementation process

In this paper, MNIST data set is used for training, and the graphical method is used to show the difference between the input in CGAN and GAN, so as to help understand the operation process of CGAN 1, Principle As shown in the figure below, when we input noise z, we add an additional restriction condition, z and c to obtain the generated ...

Added by AdamSnow on Sat, 23 Oct 2021 05:42:09 +0300

In order to get her started with Python in 10 minutes, I stayed up late and wrote 7 cases and this article

preface Recently, I systematically studied the basic knowledge of python once, and thought of whether there was a way to master knowledge quickly. The general normal logic is to practice cases while reading basic knowledge, which is a process from thick to thin. But now the pace is so fast, especially Internet companies. Excluding the time to ...

Added by cillosis on Fri, 22 Oct 2021 14:34:20 +0300

Chapter 3 using strings

You have learned how to use indexes and slices to access characters in stringsNext, learn to format other values using stringsImportant tasks that can be accomplished using string methods, such as splitting, merging, and finding. 3.1 basic operation of string All standard sequence operations (index, slice, multiplication, membership check, le ...

Added by yeshuawatso on Fri, 22 Oct 2021 11:49:04 +0300

Easy to understand Apriori algorithm

Apriori algorithm 1, Introduction to Apriori algorithm Apriori algorithm is the first association rule mining algorithm and the most classical algorithm. It uses the iterative method of layer by layer search to find the relationship of itemsets in the database to form rules. The process consists of connection (matrix like operation) and pruni ...

Added by Richardtagger on Fri, 22 Oct 2021 11:45:22 +0300

Comparison between NumPy and Matlab

introduce MATLAB ® And NumPy / SciPy have a lot in common. But there are many differences. NumPy and SciPy were created to perform numerical and scientific calculations in the most natural way in Python, not MATLAB ® clone. This page aims to collect wisdom about differences, mainly to help skilled MATLAB ® Users become skilled NumP ...

Added by jamesl on Fri, 22 Oct 2021 04:12:11 +0300

PyTorch Week 3 -- weight initialization

Catalogue of series articles PyTorch Week 3 - nn.MaxPool2d, nn.AvgPool2d, nn.Linear, active layer PyTorch Week 3 - convolution PyTorch Week 3 -- container of nn.Module: Sequential, ModuleList, ModuleDice PyTorch Week 3 - model creation PyTorch Week 2 - Dataloader and Dataset PyTorch Week 1 preface In this section, the principle of gradie ...

Added by vikramjeet.singla on Thu, 21 Oct 2021 21:48:55 +0300