As I learned from "Python of the Ministry of Education is not Python", Python can overwrite built-in functions as well. So, when I looked it up, I found that ``` builtins. ()` `` Can also call the original built-in function. That means even at the beginning of the program
import builtins
def print(str):
builtins.print('UNKO')
If you put it in, no matter what you print () It will be like this.
Recommended Posts