python

当前位置:中华考试网 >> python >> python问答 >> 文章内容

python中@是什么意思

来源:中华考试网  [2020年12月22日]  【

  修饰符,比如bai说

  class A:

  @dustaticmethod

  def m(self):

  pass

  就相当于

  class A:

  def m(self):

  pass

  m = staticmethod(m)

  其实就zhi是一调用一个函数参dao数为下行的变量,并且zhuan替换它

责编:zp032348

上一篇:python中{}[]是什么用法?

下一篇: 没有了

  • 会计考试
  • 建筑工程
  • 职业资格
  • 医药考试
  • 外语考试
  • 学历考试