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__

  

最新文章

  1. 向ES6靠齐的Class.js
  2. (转)springAOP解析-1
  3. ffmpeg iOS 编译
  4. js实现密码加密
  5. 演练5-4:Contoso大学校园管理系统4
  6. jquery easyui Accordion的使用
  7. nefu 1191 平行宇宙 (bfs)
  8. Tar专题
  9. vim的基础操作
  10. Java 学习路线图
  11. [CentOS7]redis设置开机启动,设置密码
  12. Reboot-less node fencing in Oracle Clusterware 11g Release 2
  13. 【NGINX】配置文件
  14. SQL性能优化前期准备-清除缓存、开启IO统计
  15. lubuntu16.04 安装过程以及ssd测试模型的环境配置
  16. XXS level5
  17. mysql 导出表数据表结构
  18. jmeter maven自动移动jar包windows 批处理命令
  19. Wrapper class webservice.jaxws.SayHi is not found. Have you run APT to generate them?
  20. Android sdcard文件读写操作

热门文章

  1. Solidworks 不能生成实体,因为这将导致厚度为零的零件怎么办
  2. lua 异常 错误处理 pcall
  3. hdu 2795(单点改动)
  4. openwrt gstreamer实例学习笔记(七. gstreamer 缓冲区(Buffers)和事件(Events))
  5. 二分法和牛顿迭代实现开根号函数:OC的实现
  6. VC最小化到托盘程序
  7. JavaScript重点记忆
  8. js modify local file
  9. 有奖试读&征文——我们在互联网上奋斗的故事 获奖名单发布
  10. R学习-- 数组和矩阵