#【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 使用连接池封装pymysql
备注:1,记得先修改连接的数据库哦,(用navicat更方便一点):2,分开两个py文件写入,运行sqlhelper.py文件 一.在utils.py中写 import pymysqlfrom DBU ...
- CF922D Robot Vacuum Cleaner 贪心+排序
正确的贪心方法:按照比例排序. code: #include <bits/stdc++.h> #define N 200000 #define ll long long #define s ...
- CF #589 (Div. 2)C. Primes and Multiplication 快速幂+质因数
题目链接:https://www.luogu.org/problem/CF1228C 问题可以转化为:求质数 $p$ 在 $1\sim n$ 中的每个数中的次幂之和. 因为 $p$ 是一个质数,只能由 ...
- P1169 [ZJOI2007]棋盘制作——悬线法
---恢复内容开始--- 给你一个矩阵,选出最大的棋盘,棋盘的要求是黑白相间(01不能相邻),求出最大的正方形和矩形棋盘的面积: 数据n,m<=2000; 这个一看就可能是n2DP,但是写不出. ...
- ubuntu14.04重启网卡的三种方法
Linux重启网卡的三种方法: 一.network 利用root帐户 # service network restart 或者/etc/init.d/networking restart 二.ifdo ...
- RabbitMQ 和 Kafka 的消息可靠性对比
RabbitMQ和Kafka都提供持久的消息保证.两者都提供至少一次和至多一次的保证,另外,Kafka在某些限定情况下可以提供精确的一次(exactly-once)保证. 让我们首先理解一下上述术语的 ...
- springboot中web应用的统一异常处理
在web应用中,请求处理过程中发生异常是非常常见的情况.springboot为我们提供了一个默认的映射:/error,当处理中抛出异常之后,会转到该请求中处理,并且该请求有一个全局的错误页面用来展示异 ...
- Java 类加载
类的生命周期 类的生命周期是从class文件到类加载 开始.类卸载结束. https://gitbook.cn/books/5cb844a55f75cc777e4c2320/index.html
- XMLHttpRequest Level2 新功能
XMLHttpRequest是浏览器的接口,使得javascript可以进行HTTP(S)通信: 2008年2月,就提出了XMLHttpRequest Level 2 草案. 这个XMLHttpReq ...
- DBeaver 客户端中时间显示问题解决
最近工作使用了一段时间的macOS,换了新的数据库客户端 DBeaver,无意中发现客户端显示时间不正确.时间保存之后显示比实际时间多13个小时整.可以判断是时区没有配置正确.无意中发现是DBeave ...