python __builtins__ staticmethod类 (64)
2024-09-06 15:55:09
64、'staticmethod', 返回静态方法
class staticmethod(object)
| staticmethod(function) -> method
|
| Convert a function to be a static method.
|
| A static method does not receive an implicit first argument.
| To declare a static method, use this idiom:
|
| class C:
| @staticmethod
| def f(arg1, arg2, ...):
| ...
|
| It can be called either on the class (e.g. C.f()) or on an instance
| (e.g. C().f()). The instance is ignored except for its class.
|
| Static methods in Python are similar to those found in Java or C++.
| For a more advanced concept, see the classmethod builtin.
|
| Methods defined here:
|
| __get__(self, instance, owner, /)
| Return an attribute of instance, which is of type owner.
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __new__(*args, **kwargs) from builtins.type
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| __dict__
|
| __func__
|
| __isabstractmethod__
最新文章
- 向ES6靠齐的Class.js
- (转)springAOP解析-1
- ffmpeg iOS 编译
- js实现密码加密
- 演练5-4:Contoso大学校园管理系统4
- jquery easyui Accordion的使用
- nefu 1191 平行宇宙 (bfs)
- Tar专题
- vim的基础操作
- Java 学习路线图
- [CentOS7]redis设置开机启动,设置密码
- Reboot-less node fencing in Oracle Clusterware 11g Release 2
- 【NGINX】配置文件
- SQL性能优化前期准备-清除缓存、开启IO统计
- lubuntu16.04 安装过程以及ssd测试模型的环境配置
- XXS level5
- mysql 导出表数据表结构
- jmeter maven自动移动jar包windows 批处理命令
- Wrapper class webservice.jaxws.SayHi is not found. Have you run APT to generate them?
- Android sdcard文件读写操作