python自帶help功能怎么使用_第1頁
python自帶help功能怎么使用_第2頁
python自帶help功能怎么使用_第3頁
python自帶help功能怎么使用_第4頁
python自帶help功能怎么使用_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

第python自帶help功能怎么使用C:\Users\wusongpython

Python3.8.2rc1(tags/v3.8.2rc1:8623e68,Feb112025,10:46:21)[MSCv.191664bit(AMD64)]onwin32

Typehelp,copyright,creditsorlicenseformoreinformation.

輸入help()

help

Typehelp()forinteractivehelp,orhelp(object)forhelpaboutobject.

help()

WelcometoPython3.8shelputility!

IfthisisyourfirsttimeusingPython,youshoulddefinitelycheckout

thetutorialontheInternetat/3.8/tutorial/.

Enterthenameofanymodule,keyword,ortopictogethelponwriting

PythonprogramsandusingPythonmodules.Toquitthishelputilityand

returntotheinterpreter,justtypequit.

TogetalistofavAIlablemodules,keywords,symbols,ortopics,type

modules,keywords,symbols,ortopics.Eachmodulealsocomes

withaone-linesummaryofwhatitdoes;tolistthemoduleswhosename

orsummarycontainagivenstringsuchasspam,typemodulesspam.

help

這句話:Togetalistofavailablemodules,keywords,symbols,ortopics,typemodules,keywords,symbols,ortopics.

意思就是:

要獲取可用模塊、關鍵字、符號或主題的列表,請鍵入模塊、關鍵字、符號或主題。

modules

我們先看下modules

在help模式下輸入:modules

helpmodules

PleasewaitamomentwhileIgatheralistofallavailablemodules...

D:\software_install\python\lib\pkgutil.py:92:UserWarning:Thenumpy.array_apisubmoduleisstillexperimental.SeeNEP47.

__import__()

PILasyncpgidnaselenium

PyInstalleratexitimaplibserial

PyQt5atlastkimghdrsetuptools

__future__attrimpshelve

_abcattrsimportlibshlex

_astaudioopinspectshutil

_asynciobackportsiosignal

_bisectbase64iPaddresssimplejson

_blake2bcryptitertoolssite

_bootlocalebdbjinja2six

_bz2billiardjsonsmtpd

_cffi_backendbinasciikeywordsmtplib

_codecsbinhexkiwisolversndhdr

_codecs_cnbisectkombusniffio

_codecs_hkbroadcasterlib2to3socket

_codecs_iso2025builtinslibfuturizesocketserver

_codecs_jpbz2libpasteurizesocks

_codecs_krcProfilelinecachesockshandler

_codecs_twcalendarlocalesortedcontainers

_collectionsceleryloggingsqlalchemy

_collections_abccertifilogurusqlite3

_compat_picklecffilzmasqlparse

_compressioncgimailboxsre_compile

_contextvarscgitbmailcapsre_constants

_csvcharset_normalizermarkupsafesre_parse

_ctypeschunkmarshalssl

_ctypes_testclickmathstarlette

_datetimeclick_didyoumeanmatplotlibstat

_decimalclick_pluginsmimetypesstatistics

_dummy_threadclick_replmmapstring

_elementtreecmathmodulefinderstringprep

_functoolscmdmsilibstruct

_hashlibcodemsvcrtsubprocess

_heapqcodecsmultiprocessingsunau

_impcodeopnaclsymbol

_iocollectionsnetrcsymtable

_jsoncoloramanntplibsys

_localecolorsysntsysconfig

_lsprofcompileallntpathtabnanny

_lzmaconcurrentnturl2pathtarfile

_markupbaseconfigparsernumberstelnetlib

_md5contextlibnumpytempfile

_msicontextvarsopcodetest

_multibytecodeccontourpyoperatortextwrap

_multiprocessingcopyoptparsetftpy

_opcodecopyregordered_setthis

_operatorcryptordlookupthreading

_osx_supportcryptographyostime

_overlappedcsvoutcometimeit

_picklectypespackagingtkinter

_py_abccursesparamikotoken

_pydecimalcv2parsertokenize

_pyinstaller_hooks_contribcyclerpasttortoise

_pyiodatabasespathlibtrace

_queuedataclassespdbtraceback

_randomdatetimepefiletracemalloc

_ruamel_yamldateutilpeutilstrio

_sha1dbmpickletrio_websocket

_sha256decimalpickletoolstty

_sha3deepdiffpipturtle

_sha512difflibpipesturtledemo

_signaldispkg_resourcestypes

_sitebuiltinsdistlibpkgutiltyping

_socketdistutilsplatformtyping_extensions

_sqlite3djangoplatformdirstzdata

_sredoctestplistlibunicodedata

_ssldotenvpoplibunittest

_statdummy_threadingposixpathurllib

_statisticseasy_installpprinturllib3

_stringemailprettytableuu

_strptimeencodingsprofileuuid

_structensurepipprompt_toolkituvicorn

_symtableenumpstatsvenv

_testbuffererrnopsutilvine

_testcapifastapiptyvirtualenv

_testconsolefaulthandlerpy_compilewarnings

_testimportmultiplefilecmppyclbrwatchfiles

_testmultiphasefileinputpycparserwave

_threadfilelockpydanticwcwidth

_threading_localfnmatchpydocweakref

_tkinterfontToolspydoc_datawebbrowser

_tracemallocformatterpyechartswebsockets

_warningsfractionspyexpatwin32_setctime

_weakrefftplibpylabwin32ctypes

_weakrefsetfunctoolspyparsingwinreg

_winapifuturepyqt5_pluginswinsound

_xxsubinterpretersgcpyqt5_toolswsgiref

_yamlgenericpathpytzwsproto

abcgetoptqt5_applicationsxdrlib

aifcgetpassqt5_toolsxlrd

altgraphgettextqueuexlwt

amqpglobquoprixml

antigravitygreenletrandomxmlrpc

anyiogziprexxsubtype

argparseh21reprlibyaml

arrayhashlibrequestszipapp

asgirefheapqrlcompleterzipfile

asthmacrunpyzipimport

async_generatorhtmlschedzlib

asynchathttpsecrets

asynciohttptoolsselect

asyncoreidlelibselectors

Enteranymodulenametogetmorehelp.Or,typemodulesspamtosearch

formoduleswhosenameorsummarycontainthestringspam.

help

從這里可以看出還是有相當多的模塊,比如我們常用的re,xlrd當然也有我們后期安裝的;挑一個進去看看,有啥風景,就挑xlrd

helpxlrd

Helponpackagexlrd:

xlrd

DESCRIPTION

#Copyright(c)2005-2012StephenJohnMachin,LingfoPtyLtd

#Thismoduleispartofthexlrdpackage,whichisreleasedundera

#BSD-stylelicence.

PACKAGECONTENTS

biffh

book

compdoc

formatting

formula

info

sheet

timemachine

xldate

FUNCTIONS

count_records(filename,outfile=colorama.ansitowin32.StreamWrapperobjectat0x000001D26AC13D00)

Fordebuggingandanalysis:summarisethefilesBIFFrecords.

ie:produceasortedfileof``(record_name,count)``.

:paramfilename:Thepathtothefiletobesummarised.

:paramoutfile:Anopenfile,towhichthesummaryiswritten.

--More--行數:

這里面會詳細介紹xlrd模塊的名字,描述,模塊目錄、功能、版本、文件位置等信息,在最后一行看到--More--,這是一個分頁符,表示當前頁面不能全部顯示所有信息,需要部分分頁操作,可以使用空格鍵切換下一頁,也可以使用回車鍵看下一行,看你自己的需求進行操作,如果不想看了可輸入q退出閱讀模式,進入help模式,再輸入q則可以繼續(xù)退出help模式;

helpq

YouarenowleavinghelpandreturningtothePythoninterpreter.

Ifyouwanttoaskforhelponaparticularobjectdirectlyfromthe

interpreter,youcantypehelp(object).Executinghelp(string)

hasthesameeffectastyping

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論