JIM-FAN

1. dir()查看类的方法和属性

dir([object])

  

2.help()查看函数或模块用途的详细说明

help([object])

 

3.查看具体类中某方法的详细说明

help(object.method_name)

  例如:查看slice类中的indices方法

  help(slice.indices)

 

 

 

 

 

 

分类:

技术点:

相关文章:

  • 2021-10-31
  • 2021-07-16
  • 2022-12-23
  • 2021-07-02
  • 2021-12-19
  • 2022-12-23
  • 2022-02-07
  • 2021-08-06
猜你喜欢
  • 2021-12-09
  • 2021-11-30
  • 2021-12-19
  • 2021-11-30
  • 2021-08-08
  • 2021-07-28
相关资源
相似解决方案