码迷,mamicode.com
首页 > 编程语言 > 详细

python 查看某个模块都有什么方法

时间:2019-07-01 00:49:04      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:amp   form   eth   check   code   cos   arch   system   https   

 

1.看官方文档 https://docs.python.org/3/search.html?q=os&check_keywords=yes&area=default

2.看源码

3.dir()

import requests,os,random
print(dir(random))

# [BPF, LOG4, NV_MAGICCONST, RECIP_BPF, Random, SG_MAGICCONST, SystemRandom, 
# TWOPI, _BuiltinMethodType, _MethodType, _Sequence, _Set, __all__, __builtins__, 
# __cached__, __doc__, __file__, __loader__, __name__, __package__, __spec__, _acos, 
# _ceil, _cos, _e, _exp, _inst, _log, _pi, _random, _sha512, _sin, _sqrt, _test,
# _test_generator, _urandom, _warn, betavariate, choice, expovariate, gammavariate, gauss, 
# getrandbits, getstate, lognormvariate, normalvariate, paretovariate, randint, random, randrange, 
# sample, seed, setstate, shuffle, triangular, uniform, vonmisesvariate, weibullvariate]

 

python 查看某个模块都有什么方法

标签:amp   form   eth   check   code   cos   arch   system   https   

原文地址:https://www.cnblogs.com/sea-stream/p/11111804.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!