首页 > 装修问答 > 其它 > python 使用property为什么要定义私有?

python 使用property为什么要定义私有?

浏览次数:1253|时间:2024-04-13

热门回答

2024-04-11听风者三
内置函数在概念上并没有唯一专指。 ============= 但在其他语言,可以直接调用。这些函数不属于任何类或模块,内置函数的具体含义不同、其他环境下。 用户自定义扩充的函数也不属于内置。近似于关键字。 abs() dict() help() min() setattr() all() dir() hex() next() slice() any() divmod() id() object() sorted() ascii() enumerate() input() oct() staticmethod() bin() eval() int() open() str() bool() exec() isinstance() ord() sum() bytearray() filter() issubclass() pow() super() bytes() float() iter() print() tuple() callable() format() len() property() type() chr() frozenset() list() range() vars() classmethod() getattr() locals() repr() zip() compile() globals() map() reversed() __import__() complex() hasattr() max() round() delattr() hash() memoryview() set() 标准库中其他模块内的静态方法等不属于内置函数,可以看成python语言不可分割的一部分吧python的内置函数built-in function是指在标准库standard library中的内置函数,是合成词

113

2024-04-09Jasmine2001
内置函数在概念上并没有唯一专指。 ============= 但在其他语言,可以直接调用。这些函数不属于任何类或模块,内置函数的具体含义不同、其他环境下。 用户自定义扩充的函数也不属于内置。近似于关键字。 abs() dict() help() min() setattr() all() dir() hex() next() slice() any() divmod() id() object() sorted() ascii() enumerate() input() oct() staticmethod() bin() eval() int() open() str() bool() exec() isinstance() ord() sum() bytearray() filter() issubclass() pow() super() bytes() float() iter() print() tuple() callable() format() len() property() type() chr() frozenset() list() range() vars() classmethod() getattr() locals() repr() zip() compile() globals() map() reversed() __import__() complex() hasattr() max() round() delattr() hash() memoryview() set() 标准库中其他模块内的静态方法等不属于内置函数,可以看成python语言不可分割的一部分吧python的内置函数built-in function是指在标准库standard library中的内置函数,是合成词

248