Why Python Loves Underscores So Much
Many programming languages use underscore "_" in many scenarios, so does Python. If you have ever used Python for object-oriented programming, you must know that the constructor function of a Python object is __init__(). This is probably the most common scenario that we need to use underscores in Python. However, there are much more cases that we can use one or more underscores to do some tricks. This could either improve our code in terms of reliability or even bring some new features.
Jul-4-2021, 18:15:18 GMT