Python Basics
1. Introduction to three major features of object-oriented
Python is an object-oriented language. It also supports three major features of object-oriented programming: inheritance, encapsulation (hiding) and polymorphism.
Encapsulation (hidden) Hide the properties and implementation details of the object, and only provide necessary method ...
Posted by 2gd-2be-2rue on Wed, 23 Feb 2022 19:18:27 +0100
Copy of pointnet code (the most complete in the whole network) from scratch
import numpy as np
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import Dataset,DataLoader
import h5py
import glob
import os
import json
from tqdm import tqdm
import sys
import open3d as o3d
Written in the front, the directory structure of ...
Posted by dourvas on Wed, 23 Feb 2022 16:41:50 +0100
opencv geometric transformation (python)
Geometric transformation
Geometric transformation refers to the operation of mapping one image to another.
zoom
Use function CV2 Resize() to zoom the image
dst = cv2.resize( src, dsize[, fx[, fy[, interpolation]]] )
dst represents the output target image. The type of the image is the same as src, and its size is dsize (when the value ...
Posted by forcom on Wed, 23 Feb 2022 15:54:59 +0100
Graphical python | list
Author: Han Xinzi@ShowMeAITutorial address: http://www.showmeai.tech/tutorials/56Article address: http://www.showmeai.tech/article-detail/77Notice: All Rights Reserved. Please contact the platform and the author for reprint and indicate the source1.Python listSequence is the most basic and common data structure in Python. Each element in the se ...
Posted by jesbin on Wed, 23 Feb 2022 15:48:07 +0100
day8 dictionary and homework
day8 summary
Cognitive dictionaryBasic operation of dictionaryAddition, deletion and modification of dictionaryDictionary related operation functions and methodsDictionary derivation (understanding)
1, Cognitive dictionary
Dictionary and list selection: When you need to save multiple data at the same time, use the list if the meaning of mul ...
Posted by prashanth0626 on Wed, 23 Feb 2022 15:42:34 +0100
No audio material for video creation? It only needs 16 lines of Python code, so you can't use it all. The steps are very detailed
preface
As a new generation of contemporary youth, should they be more or less able to make short videos? Haha, what about the creators of contemporary we media~
When making videos, how much do you need some funny sounds? Or strange sounds? Music, etc~
How slow it is to download one by one, let's use python to realize batch download tod ...
Posted by hhstables on Wed, 23 Feb 2022 15:03:01 +0100
Use Git hook to automatically change the submission time of the last Commit
Demand background
Sometimes you want to submit the commit information according to the regular time. For example, Virgo may want the time of each commit to be an integer time. For example, if the local time is inaccurate, you want to submit it according to the network time 1 There are other reasons..
However, Git submits the commit informatio ...
Posted by jfgreco915 on Wed, 23 Feb 2022 13:33:22 +0100
day8 dictionary summary and homework
day8 dictionary
I Cognitive dictionary
Dictionary and list selection: When you need to save multiple data at the same time, use the list if the meaning of multiple data is the same (there is no need to distinguish); If multiple data have different meanings, use a dictionary Cognitive Dictionary (dict) """
1)
Is a container data type;
take{ ...
Posted by sangamon on Wed, 23 Feb 2022 12:49:00 +0100
day8 dictionary job
day8 dictionary
1. Recognize the dictionary
1. Dictionary and list selection:
When you need to save multiple data at the same time, use the list if the meaning of multiple data is the same (there is no need to distinguish); If multiple data have different meanings, use a dictionary
2. Cognitive Dictionary (dict)
1) Is a container data type ...
Posted by mr02077 on Wed, 23 Feb 2022 12:42:11 +0100
python system learning dictionary and collection
Dictionaries
d = {key1 : value1, key2 : value2, key3 : value3 } Keys must be unique, but values do not. The value can take any data type, but the key must be immutable, such as string and number.
Modify dictionary
The way to add new content to the dictionary is to add new key / value pairs
tinydict = {'Name': 'Runoob', 'Age': 7, 'Class': ' ...
Posted by SpinCode on Wed, 23 Feb 2022 08:49:43 +0100