Python learning variables, strings, numbers, comments
Python learning (I) variables
Since the postgraduate study mainly uses Python and C + +, and has been busy with graduation design recently, the learning and sorting of Java language is the first step, and the next step is to complete the study of Python. In fact, most of the language specifications are interlinked. They are written here fo ...
Posted by mgelinas on Wed, 09 Feb 2022 21:46:44 +0100
Extracting text relations with ltp and creating knowledge map (based on neo4j)
Blogger in the last article Extracting text relations and creating knowledge map with ltp (based on neo4j) (I) In this paper, the single sentence is analyzed with LTP, the semantic dependency is extracted, and the map is created on neo4j website with python. This chapter is an extension of the previous article. The overall code is similar. This ...
Posted by naveendk.55 on Wed, 09 Feb 2022 21:09:39 +0100
Python digital analog notes - NetworkX conditional shortest path
1. Shortest path problem with conditional constraints
The shortest path problem is to find the shortest path between two vertices in graph theory. It is usually to find the shortest weighted path.
Conditional shortest path refers to the shortest path with constraints and restrictions. For example, vertex constraints, including restrictions on ...
Posted by clio-stylers on Wed, 09 Feb 2022 20:34:43 +0100
Study notes on data analysis - basic drawing of Matplotlib line chart and analysis of relevant parameters in the code
1, Code
from matplotlib import pyplot as plt
from matplotlib import font_manager
#Set the value of x, y
x1=[-7,-4,-1,0,3,5,7,9,12,15,16,17]
y1=[12,13,15,17,23,11,13,26,99,10,12,36]
y2=[-12,73,-15,7,13,33,12,36,9,11,1,7]
#Set the size and pixels of the instance fig
fig = plt.figure(figsize=(30,10),dpi=300)
#Import windows fonts
font = fon ...
Posted by timmytock on Wed, 09 Feb 2022 18:44:48 +0100
Introduction and Processing of UCF101 Action Recognition Dataset
1. Introduction to datasets:
UCF101 is a motion recognition dataset for real action videos collected on YouTube and provides 13320 videos from 101 action categories. Official website: https://www.crcv.ucf.edu/research/data-sets/ucf101/
Dataset name: UCF-101 (2012)Total Videos: 13,320 VideosTotal duration: 27 hoursVideo source: YouTube col ...
Posted by johnwayne77 on Wed, 09 Feb 2022 17:39:21 +0100
nndl01_numpy exercises
numpy exercises
This article is only for my study notes and is deleted
The title comes from https://github.com/nndl/nndl.github.io
array operation of numpy
1. Import numpy Library
import numpy as np
2. Create a one-dimensional array A and initialize it to [4,5,6], (1) output the type of a, (2) output the size of each dimension of a, (3) ...
Posted by lbraine on Wed, 09 Feb 2022 15:41:34 +0100
Childhood classic memories | take you to play a magic tower game in Python from scratch
Relevant documents
Relevant game materials (pictures and audio, etc.) come from the network and are subject to invasion and deletion.
Small partners who need source code can add QQ group: 773162165
development tool
Python version: 3.7.4 Related modules: pygame module; And some python built-in modules.
Environment construction
Install Pyth ...
Posted by GrexP on Wed, 09 Feb 2022 14:43:57 +0100
Bing dwen dwen can't buy it? Teach you to draw one in Python~
Hello, this is yuechuang.
On the two days Bing dwen dwen, the mascot "ice pier pier" was opened up with the opening of the Winter Olympic Games in Beijing. It is said that some people even fried the price to thousands of yuan.
In fact, it's OK. I originally wanted to buy some objects in my new study. I inadvertently thought that I w ...
Posted by xionhack on Wed, 09 Feb 2022 13:00:50 +0100
Nine sorting algorithms (implemented in Python language)
Article content
1, Selective sorting method
Selective sorting is to repeatedly take out the smallest (or largest) data from the unordered sequence and store it at the beginning of the sequence, and then continue to find the smallest (or largest) data from the unordered elements and store it at the end of the sorted sequence. The final re ...
Posted by nostradamus on Wed, 09 Feb 2022 09:29:15 +0100
Creating and using classes for python learning
1. Create Classes
Create a dog class based on the puppy, and each instance will store the name and age, how to give each puppy the ability to eat and run: Parse as follows: 1.class Dog: In python, uppercase names refer to classes, and class definitions do not have parentheses; 2. The comments section describes the main functions of this cl ...
Posted by ocd on Wed, 09 Feb 2022 09:11:12 +0100