#【Python】【基础知识】【模块】【Python的常用模块】
在IDE解释器中,执行help('modules')可查看当前环境可调用的Python模块:
>>> help('modules')
Please wait a moment while I gather a list of all available modules...
__future__ atexit http scrolledlist
__main__ audioop hyperparser search
_abc autocomplete idle searchbase
_ast autocomplete_w idle_test searchengine
_asyncio autoexpand idlelib secrets
_bisect base64 imaplib select
_blake2 bdb imghdr selectors
_bootlocale binascii imp setuptools
_bz2 binhex importlib shelve
_codecs bisect inspect shlex
_codecs_cn browser io shutil
_codecs_hk builtins iomenu signal
_codecs_iso2022 bz2 ipaddress site
_codecs_jp cProfile itertools smtpd
_codecs_kr calendar json smtplib
_codecs_tw calltip keyword sndhdr
_collections calltip_w lib2to3 socket
_collections_abc cgi linecache socketserver
_compat_pickle cgitb locale sqlite3
_compression chunk logging squeezer
_contextvars cmath lzma sre_compile
_csv cmd macosx sre_constants
_ctypes code macpath sre_parse
_ctypes_test codecontext mailbox ssl
_datetime codecs mailcap stackviewer
_decimal codeop mainmenu stat
_dummy_thread collections marshal statistics
_elementtree colorizer math statusbar
_functools colorsys mimetypes string
_hashlib compileall mmap stringprep
_heapq concurrent modulefinder struct
_imp config msilib subprocess
_io config_key msvcrt sunau
_json configdialog multicall symbol
_locale configparser multiprocessing symtable
_lsprof contextlib netrc sys
_lzma contextvars nntplib sysconfig
_markupbase copy nt tabnanny
_md5 copyreg ntpath tarfile
_msi crypt nturl2path telnetlib
_multibytecodec csv numbers tempfile
_multiprocessing ctypes opcode test
_opcode curses operator textview
_operator dataclasses optparse textwrap
_osx_support datetime os this
_overlapped dbm outwin threading
_pickle debugger paragraph time
_py_abc debugger_r parenmatch timeit
_pydecimal debugobj parser tkinter
_pyio debugobj_r pathbrowser token
_queue decimal pathlib tokenize
_random delegator pdb tooltip
_sha1 difflib percolator trace
_sha256 dis pickle traceback
_sha3 distutils pickletools tracemalloc
_sha512 doctest pip tree
_signal dummy_threading pipes tty
_sitebuiltins dynoption pkg_resources turtle
_socket easy_install pkgutil turtledemo
_sqlite3 editor platform types
_sre email plistlib typing
_ssl encodings poplib undo
_stat ensurepip posixpath unicodedata
_string enum pprint unittest
_strptime errno profile urllib
_struct faulthandler pstats uu
_symtable filecmp pty uuid
_testbuffer fileinput py_compile venv
_testcapi filelist pyclbr warnings
_testconsole fnmatch pydoc wave
_testimportmultiple formatter pydoc_data weakref
_testmultiphase fractions pyexpat webbrowser
_thread ftplib pyparse window
_threading_local functools pyshell winreg
_tkinter gc query winsound
_tracemalloc genericpath queue wsgiref
_warnings getopt quopri xdrlib
_weakref getpass random xml
_weakrefset gettext re xmlrpc
_winapi glob redirector xxsubtype
abc grep replace zipapp
aifc gzip reprlib zipfile
antigravity hashlib rlcompleter zipimport
argparse heapq rpc zlib
array help rstrip zoomheight
ast help_about run zzdummy
asynchat history runpy
asyncio hmac runscript
asyncore html sched
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
>>>
各个模块的作用及使用方法:
————————(我是分割线)————————
参考:
None
备注:
初次编辑时间:2019年10月6日11:18:28
环境:Windows 7 / Python 3.7.2
#【Python】【基础知识】【模块】【Python的常用模块】的更多相关文章
- Python基础(正则、序列化、常用模块和面向对象)-day06
写在前面 上课第六天,打卡: 天地不仁,以万物为刍狗: 一.正则 - 正则就是用一些具有特殊含义的符号组合到一起(称为正则表达式)来描述字符或者字符串的方法: - 在线正则工具:http://tool ...
- python爬虫主要就是五个模块:爬虫启动入口模块,URL管理器存放已经爬虫的URL和待爬虫URL列表,html下载器,html解析器,html输出器 同时可以掌握到urllib2的使用、bs4(BeautifulSoup)页面解析器、re正则表达式、urlparse、python基础知识回顾(set集合操作)等相关内容。
本次python爬虫百步百科,里面详细分析了爬虫的步骤,对每一步代码都有详细的注释说明,可通过本案例掌握python爬虫的特点: 1.爬虫调度入口(crawler_main.py) # coding: ...
- python基础系列教程——Python3.x标准模块库目录
python基础系列教程——Python3.x标准模块库目录 文本 string:通用字符串操作 re:正则表达式操作 difflib:差异计算工具 textwrap:文本填充 unicodedata ...
- python基础知识小结-运维笔记
接触python已有一段时间了,下面针对python基础知识的使用做一完整梳理:1)避免‘\n’等特殊字符的两种方式: a)利用转义字符‘\’ b)利用原始字符‘r’ print r'c:\now' ...
- Python 基础知识(一)
1.Python简介 1.1.Python介绍 python的创始人为吉多·范罗苏姆(Guido van Rossum).1989年的圣诞节期间,吉多·范罗苏姆(中文名字:龟叔)为了在阿姆斯特丹打发时 ...
- Python基础知识(五)------字典
Python基础知识(四)------字典 字典 一丶什么是字典 dict关键字 , 以 {} 表示, 以key:value形式保存数据 ,每个逗号分隔 键: 必须是可哈希,(不可变的数据类型 ...
- python 基础知识(一)
python 基础知识(一) 一.python发展介绍 Python的创始人为Guido van Rossum.1989年圣诞节期间,在阿姆斯特丹,Guido为了打发圣诞节的无趣,决心开发一个新的脚本 ...
- python基础知识的学习和理解
参考链接:https://github.com/yanhualei/about_python/tree/master/python_learning/python_base python基础知识笔 ...
- Python基础知识(六)------小数据池,集合,深浅拷贝
Python基础知识(六)------小数据池,集合,深浅拷贝 一丶小数据池 什么是小数据池: 小数据池就是python中一种提高效率的方式,固定数据类型使用同一个内存地址 代码块 : 一个文 ...
- Python基础知识总结笔记(四)函数
Python基础知识总结笔记(四)函数python中的函数函数中的参数变量作用域偏函数PFA递归函数高阶函数BIFs中的高阶函数匿名函数lambda闭包Closure装饰器Decorator函数式编程 ...
随机推荐
- PHPCMS v9插件包整合
插件包是已经修改好的文件集合,您可以直接将插件包复制到您的网站中. 注意:插件包会替换phpcms中的文件,如果您修改过phpcms中的文件请先备份好旧的文件. 1.下载插件包 2.解压 3.复制里面 ...
- Flask-login Question
1 未登录访问鉴权页面如何处理? 如果未登录访问了一个作了 login_required 限制的 view,那么 Flask-Login 会默认 flash一条消息,并且将重定向到login_view ...
- 设置Python打印格式
>>> def esc(code): ... return f'\033[{code}m' ... >>> print(esc('31;1;4') + 'reall ...
- 【零基础】风格迁移之deep-painterly-harmonization的安装和使用
注:原项目名叫deep-painterly-harmonization,这里我缩写下称呼其为“DPH” 注:原项目GIT链接:https://github.com/luanfujun/deep-pai ...
- CISCO实验记录七:OSPF
一.要求 1.使用OSPF创建路由表 2.查看OSPF邻居 二.实现 1.使用OSPF创建路由表 #router ospf 1 #network 192.168.1.0 0.0.0.255 area ...
- impdp不是内部或外部命令(Linux)
1.在windows环境变量下,配置path系统变量. 右击“我的电脑”—>“高级”—>“环境变量”—>“系统变量”—>path:然后添加";oracle导入导出命令 ...
- centos7 - nginx配置安装phpmyadmin
原文 https://www.linuxidc.com/Linux/2017-10/147556.htm 使用Nginx搭建phpMyAdmin Nginx有什么用? Nginx可读作Engin ...
- Mac下安装MySQL 5.6.40
Mac下安装MySQL 5.6.40 - 干勾鱼的CSDN博客 - CSDN博客 原创 Mac下安装MySQL 5.6.40 2018-06-18 10:34:03 我是干勾鱼 阅读数 5927 ...
- 数据分析 - sql 业务相关练习题
数据库 userinfo , orderinfo 表 两个 userId 彼此对应 题目 解题 不同月份的下单人数 用户在同一个月份会下多个单,这里进行去重 未支付的脏数据去除 统计用户三月份的 ...
- 01-02 Flutter仿京东商城项目 功能分析、底部导航Tab切换以及路由配置、架构搭建:(Flutter仿京东商城项目 首页布局以及不同终端屏幕适配方案)
Flutter和Dart交流学习群:交流群:452892873 01Flutter仿京东商城项目 功能分析.底部导航Tab切换以及路由配置.架构搭建 02Flutter仿京东商城项目 首页布局以及不同 ...