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.
Python lambda function can allow us to create an anonymous function, in this tutorial, we will introduce how to use lambda correctly for python beginners.
In this tutorial, we will use three methods to select a random element from a python list, the second method is the best, you can use it in your python applications.
Python random.randint() function can generate an integer random number. In this tutorial, we will tell you somethings you must notice when using this function.
In python, we can use base64 to encode a string and transfer it. However, the basic base64 function is not safe. In this tutorial, we write two functions to imporve base64 encode and decode functions in order to encode and decode string safely.
In this tutorial, we will introduce how to fix AttributeError: ‘bytes’ object has no attribute ‘b64encode’, you may also can find this error when you are learning how to use base64 encoding in python.
When operating files in python, there some basic operations we shoud notice, for example, how to get directory, file name and file extension. In this tutorial, we will introduce how to get these file information.
In python, we can call windows exe application to run with os.popen(). However, there is a problem we must fix. For example, if you call a cmd and there some white space in it. You will fail.
In this tutorial, we will introduce how to fix python TypeError: object is not subscriptable. From this tutorial, we can learn why this error occur and how to void and fix it.
Here are some ways to remove duplicate elements in python list. In this tutorial, we will introduce the most simple way to do. You can follow our example to do it.
Python list is a common used data type in python, in this tutorial, we will introduce you how to sort a list. You can learn how to sort by following our tutorial.