In this tutorial, we will introduce random.sample() function, which will capture some random elements from a python sequence. It is very helpful to generate a randomized sequence.
In python, we can use random.shuffle() to randomize all elements in a sequence. However, to use this function correctly, there are some notices you should concern. In this tutorial, we will discuss this function.
Sometimes, we need combine some text files into one file to read and process. We can implement this function easily in python. In this tutorial, we will illustrate python beginners how to do.
To sort a python list, we can use list sort() and sorted() function. What is the difference between them? In this tutorial, we will discuss this topic.
Sometimes, you may find the eclipse console is not displayed on its main window. If you want to make it attach to the main window of eclipse, this tutorial will help you.
After you have started jupyter notebook, it will load a directory as its workspace. How to change this working directory? In this tutorial, we will tell python beginners how to do.
Jupyter notebook is a very nice tool to analysis data using python. In this tutorial, we will use some steps to show python beginners how to install it and run python script.
We can convert python object to json to share data, such as python dictionary to json. How to convert a python list to json? There does not exis any key in a list. In this tutorial, we will introduce you how to do.
When we plan to display pdf books on a site, one of important information on this pdf book is bookmarks, which is very useful to visitors. How to extract bookmarks of a pdf? In this tutorial, we will use python pymupdf library to get it.
We can use conda activate command to activate an environment. However, you may find this command does not work on windows 10 command prompt (cmd.exe). In this tutorial, we will introduce you how to fix this problem.