• dir('str')    就看一些属性

python  help() 函数

 

  • help('str')    属性+属性介绍

python  help() 函数

  • a = [1,2,3],  help(a)  ,  出现list的函数帮助
  • help(a.append)  出现list 中具体的 append 功能的帮助。 另一种表示方法  print(a.append.__doc__)

相关文章:

  • 2021-05-15
  • 2022-01-11
  • 2021-05-13
  • 2021-04-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
猜你喜欢
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-07-18
  • 2021-10-28
  • 2022-12-23
相关资源
相似解决方案