python怎么退出help_(转)python中如何使用help命令?
生活随笔
收集整理的這篇文章主要介紹了
python怎么退出help_(转)python中如何使用help命令?
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
查看python所有的modules:help("modules")
單看python所有的modules中包含指定字符串的modules: help("modules yourstr")
查看python中常見的topics: help("topics")
查看python標準庫中的module:import os.path + help("os.path")
查看python內置的類型:help("list")
查看python類型的成員方法:help("str.find")
查看python內置函數:help("open")? /?help(open)
查看python其他模塊中的子模塊:help(maplotlib.pyplot)??? #前提是先要把該模塊import進來,
如果是查看該子模塊里的函數,還要再 from package import module
比如要查看matplotlib中pyplot里的scatter函數,則需要?:
importmatplotlibfrom matplotlib importpyplot as plt
help(plt.scatter)
總結
以上是生活随笔為你收集整理的python怎么退出help_(转)python中如何使用help命令?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 手机中SN、MEID、IMEI的意思
- 下一篇: louvain算法_单细胞聚类(四)图解