方法1:使用help(random) >>> import random >>> help(random) Help on module random: NAME random - Random variable generators. FILE c:\python27\lib\random.py # 文件存放位置 方法2:利用random.__file__查看位置,然后打开后缀名为.py的文件 >>> random.__file__ 'C:\\Pyt
Question: 如何查看正则表达式模块re及其相关函数的意义 1.终端命令行下 python >> import re >> help(re) Help on module re: NAME re - Support for regular expressions (RE). FILE /usr/lib64/python2.7/re.py DESCRIPTION This module provides regular expression matching operation
1.查看所有的关键字 >>> help('keywords') Here is a list of the Python keywords. Enter any keyword to get more help. False def if raise None del import return True elif in try and else is while as except lambda with assert finally nonlocal yield break for