为什么python允许我创建带有保留关键字的变量?

-3 python variables python-3.6

我运行了这段代码,便能够将值分配给保留关键字。为什么python允许对保留关键字的赋值语句,或者我做错了?

屏幕截图 https://imgur.com/a/l2yoSoh

int = 7 print(int) 7 :

int(int)

error


TypeError Traceback (most recent call last) in () ----> 1 int(int)

TypeError: 'int' object is not callable

Ale*_*all 5

int is not a reserved keyword, it's just the name of a builtin function.