首页 > 文章 > dir查看某个模块的所有方法

dir查看某个模块的所有方法

以time模块为例:

C:\Program Files\cmder
λ python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> dir(time)
[_STRUCT_TM_ITEMS, __doc__, __loader__, __name__, __package__, __spec__, altzone, asctime, clock, ctime, daylight, get_clock_info, gmtime, localtime, mktime, monotonic, monotonic_ns, perf_counter, perf_counter_ns, process_time, process_time_ns, sleep, strftime, strptime, struct_time, thread_time, thread_time_ns, time, time_ns, timezone, tzname]
>>>

 

时间:2019-10-10 04:07:05阅读(32)
联系我们 - 留言反馈
© 2017 版权所有 鲁ICP备17052893号