#【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函数式编程 ...
随机推荐
- MySQL percona-toolkit工具详解
一.检查和安装与Perl相关的模块 PT工具是使用Perl语言编写和执行的,所以需要系统中有Perl环境. 依赖包检查命令为: rpm -qa perl-DBI perl-DBD-MySQL perl ...
- 2018 Nowcoder Multi-University Training Contest 2
目录 Contest Info Solutions A. run D. monrey G. transform H. travel I. car J. farm Contest Info Practi ...
- mfc编程之发送wm_paint消息时绘图界面只出现一瞬间
实现的功能是在打开一个文件然后把文件的图形信息绘制在picture控件上. 问题描述:我把绘制的操作放在了窗口中onpaint()函数里,打开文件后发送一个wm_paint的消息,发现picture控 ...
- c实现循环链表
解决约瑟夫环问题核心步骤: 1.建立具有n个节点.无头的循环链表 2.确定第一个报数人的位置 3.不断从链表中删除链节点,直到链表为空 #include <iostream> #inclu ...
- linux crontab 防止周期内为执行完成重复执行
问题的背景: 我们常常需要通过crontab部署某个脚本运行某些定时任务,但在实际的过程中,一旦处理不好可能导致在同一时刻出现脚本的多个运行副本,比如crontab的调度是每5 分钟运行一次脚本,如果 ...
- 8月清北学堂培训 Day1
今天是赵和旭老师的讲授~ 动态规划 动态规划的基本思想 利用最优化原理把多阶段过程转化为一系列单阶段问题,利用各阶段之间的关系,逐个求解. 更具体的,假设我们可以计算出小问题的最优解,那么我们凭借此可 ...
- 常使用的VIM命令及文件颜色代表含义
编辑模式--->输入模式 i : insert 在光标所在处输入: a:append 在光标所在处后面输入: o:在当前光标所在行的下方打开一个新行: I:在当前光标所在行的行首输入: A:在当 ...
- Echarts案例-折线图
一:先在官网下载 https://www.echartsjs.com/zh/download.html 然后再建立工程,导入这两个包: 写代码: <!DOCTYPE html> <h ...
- 大整数乘法(c++)【转载】
摘自<c++数据结构原理与经典问题求解> #include #include #include using namespace std; //返回位数为size1+size2 int* m ...
- ubuntu上面Parity 安装
sudo wget https://raw.githubusercontent.com/paritytech/parity/master/scripts/parity.service -O /et ...