单项选择题

class Student:
  name="xxx"
  @classcmethod
  def show(cls):
    name="yyy"
    print(name,cls.name)
Student.show()
结果: A.
xxx yyy B.
yyy xxx C.
xxx xxx D.
yyy yyy

微信扫码免费搜题