1. txt or csv file
[External chain picture transfer failed, source station may have anti-theft chain mechanism, it is recommended to save the picture and upload it directly (img-pbcWqI5i-16311994397) (C:UsersfylalAppDataRoamingTyporatypora-user-imagesimage-2023000394;54.png)]
import numpy as np
a = np.array(range(20)).reshape((4, 5))
Posted by bubbadawg on Thu, 09 Sep 2021 22:00:00 +0200
A little python knowledge a day
Does it not smell when you add up more???
Operators and public methods
Operator, supports container types
# Multiple variables are assigned to the same value, one to one,
str1, str2 = "abc", "def" # Character string
list1, list2 = [1, 2], [3, 4] # list
t1, t2 = (11, 21), (31, 41) # Tuple tuple ...
Posted by KMC1499 on Thu, 09 Sep 2021 18:34:27 +0200
1, Time module
There are two time related modules in python; time,datetime
1. Time stamp
It refers to the time difference (in seconds) between the current time and 0:00 on January 1, 1970 (Greenwich mean time)Saving time with timestamp takes much less content than saving time with string;It is simpler to encrypt time through time stamp, and ...
Posted by walshd on Wed, 08 Sep 2021 23:55:12 +0200
Because my knowledge is still shallow, I can't use python deep learning to identify the numbers here, so I completely use opencv to identify the numbers, and then share and record what I saw and thought in the learning process here Problems to be solved This is a number to be recognized. I first extract the ROI of the image, and only the numbe ...
Posted by txmedic03 on Wed, 08 Sep 2021 11:40:04 +0200
Solution to Chinese display problem in matplotlib
An error occurred while matplotlib was running: UserWarning: findfont: Font family ['SimHei'] not found. Falling back to DejaVu Sa perhaps RuntimeWarning: Glyph 20998 missing from current font.
Error RuntimeWarning: Cause resolution of Glyph XXXX missing from current font to detect if the curr ...
Posted by ctsttom on Tue, 07 Sep 2021 19:57:56 +0200
RFM model is an important tool and means of Hengxing's customer value and profitability.Describe a customer's value by three indicators: his recent purchasing behavior, the overall frequency of purchases, and how much he spent. < R: Last consumption time (interval from last consumption to reference time) F: Frequency of consumption # M: Amou ...
Introduction to operating system : Operating Systems: Three Easy Pieces
After class exercises: https://pages.cs.wisc.edu/~remzi/OSTEP/Homework/homework.html
The translation of the README part of the exercises after class in this chapter (easy to view later):
Welcome to this simulator. The idea is to get familiar with threads by observing h ...
Posted by kristian_gl on Mon, 06 Sep 2021 03:37:40 +0200
Basic concepts: Multiple inheritance - Liao Xuefeng
Sequence problem & homonymy method
Question: if there are methods with the same name in different parent classes, which parent class method will be called by the subclass object when calling the method?
MRO in Python (method search order)
Python provides a ...
Posted by GateGuardian on Sun, 05 Sep 2021 20:31:07 +0200
Introduction to pandas
numpy can help us with numeric data, but that's not enough. Many times, our data includes not only numeric values, but also strings, time series, and so on. That's where we need pandas to help us with them. What is Pandas? The Pandas name comes from panel data Pandas is a powerful toolset for analyzing structured data, b ...
Posted by taldos on Sun, 05 Sep 2021 19:10:57 +0200
The reason is that some T.Normalize parameters are a fixed pile of 0.5, while others are the calculated mean standard deviation in accordance with the function definition
1, Function function (quick start)
Input a tensor in the form of (channel,height,width), and input the corresponding mean and standard deviati ...
Posted by webaddict on Sun, 05 Sep 2021 18:45:21 +0200