a=1

print hasattr(a.__dict__)

print hasattr(a.__class__.__dict__)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2021-07-27
相关资源
相似解决方案