In this tutorial, we will introduce how to extract the longest common substring from two python strings, you can learn and how to do by following our tutorial.
In python, we can use logging library to save python message into a file. However, there is an problem, we can save the python message into a file, but we can not see them on our console.
In python 3, if you use xrange() function, you may find this error: NameError: name ‘xrange’ is not defined. In this tutorial, we will introduce how to fix this error in python 3.
Python file readline() function can read a line of file, in this tutorial, we will introduce how to use function and some tips on using it.
As a python programmer, we often use pip intall command to install python libary. However, we often encounter read timeout error when installing. In this tutorial, we will introduce a new way to fix this read timeout error.
In most python script, you may find code like: if __name__ == ‘__main__’:, What does this mean? In this tutorial, we will discuss this code and tell you how to use it.
Python str() and repr() function both can convert a python object to a python string format. What is difference between them? In this tutorial, we will discuss their difference.
Python dict data type does not provide default value, which means we can not read a nonexistent key. In this tutorial, we will discuss python defaultdict, it supplies a default value for dict data type.
There are some dfferences between python 2.x and python 3.x. In this tutorial, we will discuss some differences on python string. You should notice these differences when your are using python string.
In python, we can use PyMuPDF to convert pdf page to images, however, the size of image is usually small, how to convert pdf page with given scale? In this tutorial, we will introduce you how to do with examples.