Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991.
In this page, we write some tutorials and examples on how to use python to programming, you can build some excellent applications by following our tutorials and examples.
In python, to replace an old string with a new string, we can use string.replace(old, new) function. However, this function is case sensitive. In this tutorial, we will introduce a way to replace string with case insensitive.
When using python to access a blocked site (https://www.google.com in china), you may get this error: urlopen error [Errno 0] Error. In this tutorial, we will introduce you how to fix this error.
Python string.count() function can return how many times of substring in a string. In this tutorial, we will write some examples to illustrate you how to use this function.
In this tutorial, we will propose a new way to fix urlopen error EOF occurred in violation of protocol error: using shadowsocks to open a url and this error does not occur. You can read our tutorial to learn how to fix this error.
Shadowsocks is a powerful vpn application, it can allow us to access some blocked website. In this tutorial, we will introduce how to use shadowsocks to access blocked websites using python.
When you are developing network application using python, you may find this error: ModuleNotFoundError: No module named ‘socks’. In this tutorial, we will introduce you how to fix this error.
In python, to rename a file, we can use os.rename(old_name, new_name) function. In this tutorial, we will introduce how to do and you also notice os.rename() function may fail for some reason.
To convert a svg file to png, we can use svglib library, in this tutorial, we introduce how to convert a svg file to png with cairosvg, CairoSVG is more powerful than svglib. You can learn how to convert by referring to our tutorial.
When you are using python cairosvg library to convert svg to png, you may find OSError: dlopen() failed to load a library: cairo / cairo-2 / cairo-gobject-2 / cairo.so.2 error. In this tutorial, we will introduce how to fix this error.