python iterable and iterator
An object is called an iterable object if it has an __iter__ method. List, tuple, dict are all iterable objects[reference]: The __iter__ method returns an iterator object. An object is […]
An object is called an iterable object if it has an __iter__ method. List, tuple, dict are all iterable objects[reference]: The __iter__ method returns an iterator object. An object is […]
In the chapter 3 of the book “Hands-On Machine Learning with Scikit-Learn and TensorFlow”, the author plays a big joke with the readers. The fetch_mldata function in the python module […]
If you are learning machine learning on your computer. The first thing would be running the jupyter app to do some hands-on. Running this program is not similar to running […]
We’ve talked about simulating mouse click in C language. Today, we’ll learn how to simulate mouse click in jQuery. There seem quite a few methods to simulate a mouse click […]
I have a very simple test project based on QtWebEngine: ——webengineview.h——- #ifndef WEBENGINEVIEW_H #define WEBENGINEVIEW_H #include <QWebEngineView> class WebengineView : public QWebEngineView { Q_OBJECT public: WebengineView(QWidget *parent = 0); ~WebengineView(); […]
I have a project in which I need to convert a byte into an integer: <?php $a=md5(“hello”,true); echo $a[15]*1.0/255.0; The second parameter of md5 is set to true in order […]
The chapter 2 of this book is a little difficult to learn because it is a hands-on project using python. It is not a simple hello world python program, but […]
In python, you have many ways to represent a 2-dimensional array. You can use list like:[[1,2],[3,4],[5,6]], you can use ndarray in numpy like:numpy.array([[1,2],[3,4],[5,6]]), you can also use dataframe in the […]
If you learn python based AI software such as tensorflow, you’ll inevitably meet the package Numpy and DataFrame,etc. So you must learn how to use Numpy and DataFrame before you […]
In Qt, there seem a lot of classes related to XML:QDomDocument, QXmlStreamReader,QXmlSimpleReader,etc. You can choose any one to parse an XML document. QDomDocument is more powerful but keep all content […]