Objeet Oriented Python
Tutorial................................................................................... 33 Class Attributes .............................................................................................. .............................................................................. 44 Inheriting Attributes .............................................................................................. any attributes on an object that was instantiated directly. When Python allows an object to have arbitrary attributes, it takes a certain amount of system memory to keep track of what attributes each0 码力 | 111 页 | 3.32 MB | 1 年前3
Django 4.2.x DocumentationStreamingHttpResponse objects FileResponse objects HttpResponseBase class SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith="John") ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = "Billy Goat" >>> r.save() # Delete an object with delete() 0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x DocumentationStreamingHttpResponse objects FileResponse objects HttpResponseBase class SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith='John') ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete() 0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 2.2.x DocumentationJsonResponse objects StreamingHttpResponse objects FileResponse objects SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith='John') ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete() 0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 2.0.x DocumentationJsonResponse objects StreamingHttpResponse objects FileResponse objects SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith='John') ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete() 0 码力 | 2746 页 | 2.67 MB | 1 年前3
Django 1.11.x DocumentationJsonResponse objects StreamingHttpResponse objects FileResponse objects SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith='John') ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete() 0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 4.0.x DocumentationJsonResponse objects StreamingHttpResponse objects FileResponse objects SchemaEditor Methods Attributes Settings Core Settings Auth Messages Sessions Sites Static Files Core Settings Topical Index database. >>> Reporter.objects.all()]> # Fields are represented as attributes on the Python object. >>> r.full_name 'John Smith' # Django provides a rich database lookup API _startswith='John') ]> # Change an object by altering its attributes and calling save(). >>> r.full_name = 'Billy Goat' >>> r.save() # Delete an object with delete() 0 码力 | 3184 页 | 3.14 MB | 1 年前3
Python 标准库参考指南 2.7.18 are an object and a string. The result is True if the string is the name of one of the object’s attributes, False if not. (This is implemented by calling getattr(object, name) and seeing whether it raises 在 2.5 版更改: Use fget’s docstring if no doc given. 在 2.6 版更改: The getter, setter, and deleter attributes were added. range(stop) range(start, stop[, step]) This is a versatile function to create lists updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, new-style classes use a dictproxy to prevent direct dictionary updates). 不带参数时,vars()0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 are an object and a string. The result is True if the string is the name of one of the object’s attributes, False if not. (This is implemented by calling getattr(object, name) and seeing whether it raises 在 2.5 版更改: Use fget’s docstring if no doc given. 在 2.6 版更改: The getter, setter, and deleter attributes were added. range(stop) range(start, stop[, step]) This is a versatile function to create lists updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, new-style classes use a dictproxy to prevent direct dictionary updates). 不带参数时,vars()0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 are an object and a string. The result is True if the string is the name of one of the object’s attributes, False if not. (This is implemented by calling getattr(object, name) and seeing whether it raises 在 2.5 版更改: Use fget’s docstring if no doc given. 在 2.6 版更改: The getter, setter, and deleter attributes were added. range(stop) range(start, stop[, step]) This is a versatile function to create lists updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, new-style classes use a dictproxy to prevent direct dictionary updates). 不带参数时,vars()0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 409 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













