Python

Python Read Big File Example

Read file content in python is very simple, you can use the Python file object’s method  read and readlines to easily read them. But there are also some tricks in using them. This article will tell you how to use them correctly.

Python JSON Example

When you define a python dict variable like below, the variable’s value is saved in memory when the program runs: d = dict(name=’Richard’, age=25, score=100) You can change the variable value at any time, such as changing the name to ‘Tom’, but once the program ends, the memory taken by the variable is completely reclaimed …

Python JSON Example Read More »