#【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函数式编程 ...
随机推荐
- The method setCharacterEncoding(String) is undefined for the type HttpServletResponse
今天将以前做的一个web项目从不笔记本上移到台式机上,import项目后出现“The method setCharacterEncoding(String) is undefined for the ...
- vue的跳转方式(打开新页面)
vue的跳转方式(打开新页面) 2018年11月22日 10:43:21 浊清... 阅读数 2043 版权声明:本文为博主原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接和 ...
- learning express step(四)
learning express route function const express = require('express'); const app = express(); app.get(' ...
- 1937:【06NOIP普及组】数列
woc 太捞了简直捞的一匹 我居然会写博客 反正呀没有人看 随便写写喽
- vue 重置data中表单form的值 重置变量
export default { data() { return { form:{ name:"张三", age:13, sex:1, address:"" } ...
- 小程序开发:用原生还是选框架(wepy/mpvue/uni-app/taro)?
小程序开发:用原生还是选框架(wepy/mpvue/uni-app/taro)? 自 2017-1-9微信小程序诞生以来,历经2年多的迭代升级,已有数百万小程序上线,成为继Web.iOS.Androi ...
- win10 下cuda 9.0 卸载
1.首先 对于cuda8.0.cuda7.5的卸载都可以兼容 安装cuda9.0之后,电脑原来的NVIDIA图形驱动会被更新,NVIDIA Physx系统软件也会被更新(安装低版cuda可能不会被更新 ...
- MySQL的那些坑
1. 表名一定要区分大小写,不一致就会报错 2. 无隐式的类型转换 (比如对某数值进行排序时,原表字段存储却是varchar型,就会对该数值按字符串排序而非数值大小!) 3. group by 也能 ...
- linux的最简socket编程
一.背景 好久没有进行linux下的socket编程了,复习一下 二.服务端完整代码 #include <stdio.h> #include <stdlib.h> #inclu ...
- dubbo 支持的9种协议
转: dubbo 支持的9种协议 文章目录 一.9种协议 1.dubbo 协议 (默认) 2.rmi 协议 3.hessian 协议 4.htt ...