Fluent python Chapter 8 -- object reference variability garbage collection
Contents of this chapter:
Object reference:
Referential variable
Object identifier,value,alias
variability
Tuple properties
Latent replication and deep replication
References and function parameters
garbage collection
delete object
Weak reference
Tip: the contents of this chapter are not understood clearly, and errors that are no ...
Posted by Scotty2024 on Sat, 06 Nov 2021 05:24:08 -0700
Message Passing parsing in Python geometric
MessagePassing in Python geometric
Convolution computation in the graph is usually called neighborhood aggregation or message passing. Definition
x
i
(
k
−
...
Posted by pbarney on Sat, 06 Nov 2021 04:25:16 -0700
Summary of common basic functions of OpenCV
1. Picture loading, displaying and saving
cv2.imread(filename, flags): read and load images
cv2.imshow(winname, mat): displays a picture
cv2.waitKey(): wait for the picture to close
cv2.imwrite(filename, img): save the picture
2. Image display window creation and destruction
cv2.namedWindow(winname, attribute): create a window
cv2.destro ...
Posted by Jeremiah on Sat, 06 Nov 2021 00:13:46 -0700
Crawler series: storing media files
The last issue explained: Use APIThis issue of crawler series mainly explains how to store and how to store data after the crawler collects data.Although it is interesting to display the results on the command line, as the data increases and needs to be analyzed, printing the data to the command line is not the way. In order to use most web cra ...
Posted by peter11 on Fri, 05 Nov 2021 20:03:32 -0700
Image theme color extraction algorithm
Median segmentation
In RGB color space, the three primary colors R, G and B correspond to three coordinate axes of the space, and each coordinate axis is quantized to 0-255. 0 corresponds to all black and 255 corresponds to all white. In this way, a color cube with 256 sides is formed, and all possible colors correspond to a point on the c ...
Posted by Mark.P.W on Fri, 05 Nov 2021 14:47:49 -0700
Metaclass and singleton pattern
Metaclass
Everything in python is an object, so the class you define must also be an object, which is instantiated by a class. This tired class is called metaclass. How to find metaclass
class People:
def __init__(self,name,age):
self.name=name
self.age=age
print(type(People)) # The result is < class' type '>, which proves that Peo ...
Posted by p_h_p on Fri, 05 Nov 2021 11:04:31 -0700
Python crawler from entry to mastery: (43) JS reverse: perfect world RAS reverse_ Python Taoge
There are many games in perfect world. The more famous ones are Zhu Xian, world of Warcraft and so on. Perfect today, let's take a look at the reverse analysis of the landing of the perfect world!
JS reverse parsing
There is a click authentication when logging in. Never mind, perfect ignore it first and click directly. Perfect mainly discus ...
Posted by therainmaker53 on Thu, 04 Nov 2021 22:48:49 -0700
[quantitative finance] use DCF valuation model to detect stock value
1, Foreword
When carrying out fundamental analysis on a listed company, we can usually analyze and interpret its financial data and evaluate its internal value through various channels such as research on listed companies. Our commonly used financial evaluation indicators may includ ...
Posted by mdaoust on Thu, 04 Nov 2021 22:39:27 -0700
Django module learning - module language
Django module engine supports Django module language (DTL). DTL contains syntax such as variables, comments, filters, tags, module inheritance and HTML escape.
This paper introduces the following six module languages
1. Variable
2. Notes
3. Filter
4. Labels: include
5. Label: for
6. Label: in
1. Variable
DTL represents variables in ...
Posted by jtp51 on Thu, 04 Nov 2021 21:16:04 -0700
python database uses pandas, sqlalchemy and Table
The theme of this time is to store data in CSV (or other) file format into MySQL database, and the table structure primary key should be established. Including the processing of date format. Although it's very simple, there are many details and a wide range of knowledge, so write it down.
Three tables, as follows articles: issues: sales:
i ...
Posted by brendan2b on Thu, 04 Nov 2021 18:11:09 -0700