When you are learning python programming, you may encounter this error: SyntaxError: Non-UTF-8 code starting with ‘\xe8’ in file. In this tutorial, we will introduce you how to fix this error.
Python dictionary update() method can allow us to update a dict with another dictionary. In this tutorial, we will use some examples to illustrate python beginners how to use it.
In order to run python script, we have to create a new jupyter notebook. If we only want to run .py file using jupyter notebook. How to do? In this tutorial, we will introduce you how to run .py file and command line using jupyter notebook.
When we are using microsoft neural network intelligence (NNI) for hyper-parameter tuning, we may find the default metric is NaN. In this tutorial, we will introduce a way to fix this error.
Aria2 is a powerful tool to download files from internet. We can use python to call it to download our files. In this tutorial, we will introduce you how to do on windows 10.
We often use python list to contain some elements, in order to analysis these elements, we often need to count their frequency and proportion. In this tutorial, we will illustrate python beginners how to do.
Python os.popen() can allow us to call other applications by command line (cmd). However, you may find this error when reading the output: UnicodeDecodeError: ‘gbk’ codec can’t decode byte. In this tutorial, we will introduce you how to fix it.
Python subprocess.Popen() is one of best way to call external application in python. In this tutorial, we will introduce python beginners how to use this function correctly and get the output of child program.
python os.popen() and os.system() can allow python script to call other applications, however, there some differences between them. In this tutorial, we will discuss these differences.
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.