 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 true, it is still possible that a call fails, but if it is false, calling object will never succeed. Note that classes are callable (calling a class returns a new instance); class instances are callable if are zero) the code is compiled with those future statements that are in effect in the code that is calling compile(). If the flags argument is given and dont_inherit is not (or is zero) then the future statements 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 an exception or not.) hash(object) Return the0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Mypy 1.8.0 Documentationor your own type aliases), look through the type system reference. Note: When adding types, the convention is to import types using the form from typing import Union (as op- posed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 234 页 | 902.89 KB | 1 年前3 Mypy 1.8.0 Documentationor your own type aliases), look through the type system reference. Note: When adding types, the convention is to import types using the form from typing import Union (as op- posed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 234 页 | 902.89 KB | 1 年前3
 Mypy 1.10.0+dev Documentationor your own type aliases), look through the type system reference. Note When adding types, the convention is to import types using the form from typing import Union (as opposed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 318 页 | 270.84 KB | 1 年前3 Mypy 1.10.0+dev Documentationor your own type aliases), look through the type system reference. Note When adding types, the convention is to import types using the form from typing import Union (as opposed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 318 页 | 270.84 KB | 1 年前3
 Mypy 1.8.0 Documentationor your own type aliases), look through the type system reference. Note When adding types, the convention is to import types using the form from typing import Union (as opposed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 318 页 | 271.55 KB | 1 年前3 Mypy 1.8.0 Documentationor your own type aliases), look through the type system reference. Note When adding types, the convention is to import types using the form from typing import Union (as opposed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 318 页 | 271.55 KB | 1 年前3
 Mypy 1.10.0+dev Documentationor your own type aliases), look through the type system reference. Note: When adding types, the convention is to import types using the form from typing import Union (as op- posed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 234 页 | 913.89 KB | 1 年前3 Mypy 1.10.0+dev Documentationor your own type aliases), look through the type system reference. Note: When adding types, the convention is to import types using the form from typing import Union (as op- posed to doing just import typing arguments. If it is not possible to completely leave out some piece of runtime logic, the recommended convention is to replace or elide them with ellipsis expressions (...). Each ellipsis below is literally written do not need to be assigned a value. # So by convention, we omit them in the stub file. x: int # Function bodies cannot be completely removed. By convention, # we replace them with `...` instead of the0 码力 | 234 页 | 913.89 KB | 1 年前3
 Objeet Oriented Python
Tutorialthat when you instantiate a class, you get an object. You can instantiate an object, similar to calling a class like a function, as shown: this_obj = employee() # Instantiatethis_obj.EmployeID() Though we can call it (self) by any other name, it is recommended to use self, as it is a naming convention. class MyClass(object): var=9 def firstM(self): print("hello, World") instance and assigns this object to the local variable x. The instantiation operation, that is calling a class object, creates an empty object. Many classes like to create objects with instances customized0 码力 | 111 页 | 3.32 MB | 1 年前3 Objeet Oriented Python
Tutorialthat when you instantiate a class, you get an object. You can instantiate an object, similar to calling a class like a function, as shown: this_obj = employee() # Instantiatethis_obj.EmployeID() Though we can call it (self) by any other name, it is recommended to use self, as it is a naming convention. class MyClass(object): var=9 def firstM(self): print("hello, World") instance and assigns this object to the local variable x. The instantiation operation, that is calling a class object, creates an empty object. Many classes like to create objects with instances customized0 码力 | 111 页 | 3.32 MB | 1 年前3
 peewee Documentation Release 3.6.0the "people.db" database. Note Note that we named our model Person instead of People. This is a convention you should follow – even though the table will contain multiple people, we always name the class Note When you call save(), the number of rows modified is returned. You can also add a person by calling the create() method, which returns a model instance: grandma = Person.create(name='Grandma', birthday=date(1935 was already open. To close a connection, use the Database.close() method: >>> db.close() True Calling close() on an already-closed connection will not result in an exception, but will return False:0 码力 | 377 页 | 399.12 KB | 1 年前3 peewee Documentation Release 3.6.0the "people.db" database. Note Note that we named our model Person instead of People. This is a convention you should follow – even though the table will contain multiple people, we always name the class Note When you call save(), the number of rows modified is returned. You can also add a person by calling the create() method, which returns a model instance: grandma = Person.create(name='Grandma', birthday=date(1935 was already open. To close a connection, use the Database.close() method: >>> db.close() True Calling close() on an already-closed connection will not result in an exception, but will return False:0 码力 | 377 页 | 399.12 KB | 1 年前3
 peewee Documentation
Release 3.6.0the "people.db" database. Note: Note that we named our model Person instead of People. This is a convention you should follow – even though the table will contain multiple people, we always name the class Note: When you call save(), the number of rows modified is returned. You can also add a person by calling the create() method, which returns a model instance: grandma = Person.create(name='Grandma', birthday=date(1935 was already open. To close a connection, use the Database.close() method: >>> db.close() True Calling close() on an already-closed connection will not result in an exception, but will return False:0 码力 | 302 页 | 1.02 MB | 1 年前3 peewee Documentation
Release 3.6.0the "people.db" database. Note: Note that we named our model Person instead of People. This is a convention you should follow – even though the table will contain multiple people, we always name the class Note: When you call save(), the number of rows modified is returned. You can also add a person by calling the create() method, which returns a model instance: grandma = Person.create(name='Grandma', birthday=date(1935 was already open. To close a connection, use the Database.close() method: >>> db.close() True Calling close() on an already-closed connection will not result in an exception, but will return False:0 码力 | 302 页 | 1.02 MB | 1 年前3
共 437 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44














