#Novice learning basic knowledge of python language day 6
Basic knowledge
day6 - List
01. Slice of list
1. Slice - get some elements
The slice result is a list Syntax: list [start subscript: end subscript: step size] explain: Start subscript - subscript value (0 and - 1 are OK); Determine the starting point of the effective range of the slice, which can be obtained : - Fixed writing End subscript ...
Added by Innovative_Andy on Sun, 16 Jan 2022 00:58:01 +0200
python notes -- common data types and points for attention
Integer type int
Decimal → default base Binary → starts with 0b (number 0 and lowercase letter b) Octal → starts with 0o (digit 0 and lowercase letter O) Hexadecimal → beginning with 0x (number 0 and lowercase letter X)
Floating point type
Floating point numbers are composed of integer parts and decimal parts. There will ...
Added by tmk4php on Sun, 16 Jan 2022 00:37:34 +0200
Basic data types of python
preface
What is a data type?
We humans can easily distinguish between numbers and characters, but computers can't. although computers are powerful, they are stupid from a certain point of view. Unless you clearly tell them that 1 is a Number and "Han" is a word, they can't distinguish between 1 and 'Han'. Therefore, there will ...
Added by Maniacility on Sat, 15 Jan 2022 23:53:29 +0200
Introduction and use of OpenSmile
1. Download and install opensmile
Download from the official website: openSMILE - audEERING
You can use it by decompressing it under windows
2. Use of opensmile
Extract various audio features of sound signals, mainly low level descriptors (llds)
3. Using opensmile
3.1 direct use under Windows
Run the to extract audio features in the form ...
Added by kjtocool on Sat, 15 Jan 2022 23:23:21 +0200
[introduction to python crawler application] crawl CSDN blog content and convert it to pdf and jpg formats
catalogue
preface
1, Download kit, installation module
2, Write bug
1. Import and storage module
2. Get the information of the blog in the page source code
2.1 visit the website and get the page source code.
2.2 convert the blog content in the page source code into string format
3. Convert to pdf and ipg format
4. Other acquisition
5. ...
Added by mlavwilson on Sat, 15 Jan 2022 22:04:37 +0200
Self labeled dataset training is based on pytorch3 7 yolov5 palm recognition model
Prepare dataset
1. Shooting
Use the iphone 7 Plus continuous shooting function to take 1000 pictures of left and right hands in different light.
2. Picture renaming
Mobile phone automatic naming is inconvenient to traverse, so it needs to be changed to 1 jpg,2.jpg. Run the following code.
import os
import re
import sys
path = r"D:data\im ...
Added by goochy808 on Sat, 15 Jan 2022 21:56:50 +0200
MAC M1 ESP32 CAM environment construction notes
Recently, I installed ESP32 CAM under my M1 MAC, which is very useful. I tossed about when building the environment. Here is a record, hoping to provide some clues to students with similar situations.
1. For the big sur system of mac, you'd better install python 3.9.1 or above (I use 3.9.6), and install Python 3.0 first 9.1, and then install ...
Added by ki on Sat, 15 Jan 2022 21:46:55 +0200
Python solves Google highway recruitment advertisement: {the top ten consecutive prime numbers in irrational number e} com
Occasionally, I saw such a story in Mr. Wu Jun's top of the wave (Fourth Edition).Google once advertised on the 101 highway in California with a large billboard:{the first ten consecutive prime numbers in irrational number e} comIf you know the answer (7427466391.com), you can enter Google's recruitment website through the above website. And it ...
Added by bcamp1973 on Sat, 15 Jan 2022 21:37:10 +0200
Basic principles and python implementation of six common sorting algorithms (bubble sorting, selection sorting, quick sorting, insertion sorting, merge sorting, Hill sorting)
The most basic algorithm should be the sorting algorithm. Today, let's briefly introduce several common sorting algorithms
Bubble sorting
Bubble sorting visits the sorted element list once every round, and compares two adjacent elements in turn. If the order of the two elements is incorrect, exchange them and adjust the order. In this ...
Added by resago on Sat, 15 Jan 2022 20:50:30 +0200
pysimplegui uses multithreading to avoid program jamming
I have also encountered this problem. When a while loop is needed, the loop will get stuck in the gui itself. At this time, you need to start multithreading
Long time operation required
If you are a Windows user, you will see the window display "not responding" in its title bar, and then a Windows pop-up window will appear soon, i ...
Added by dcooper on Sat, 15 Jan 2022 20:31:09 +0200