admin 管理员组

文章数量: 1086019


2024年4月24日发(作者:番石榴图片 功效)

Python

Definition:Pythonisanobject-oriented,open-source

programminglanguageoftenusedforrapidapplication

'ssimplesyntaxamphasizes

readability,reducingthecostofprogrammantenance,whileits

largelibraryoffunctionsandcallsencouragesreuseand

extensibility.

AmongthelanguagesfavoredbyWebdevelopersand

innovators,particularlythoseintheopen-source

community,threeofthemostpopulararePerl,PHPand

PerlandPHParemorementioned,butwecannot

neglectPython,whichisemergingasapowerfulalternativeto

themoretraditionalchoices.

Pythonisattractivebecauseofitseaseofuse;itshighlevelof

abstractionfromthehardware;itsextensivesupportfor

housekeepingactivitiessuchasI/O,memorymanagement,data

typingandvariablebinding;and,perhapsmostimportant,thefact

thatprogrammerscanbehighlyproductivewiththelanguage.

Pythonwascreatedinthelate1980sbyDutchprogrammer

GuidovanRossumandwasnamedaftertheBBCtelevision

comedyseriesMontyPython'sFlyingCircus.

YoucanconsiderPythoneitherascriptinglanguageora

"regular"rsaninteractivemode

forquickdevelopmentandtesting,aswellasnoninteractive

modeforeaseofreuse.

Infact,Pythondosenotactuallycontainanythingnew

-------everyfeaturehasbeentakenfromsomeother

racticalcapabilitiesarewrappedupinasimple

packagethat'savailableforanyonetodownloadandusewithout

restriction;noteventheGNUPublicLicenseapplies.

Likejava,Pythonhasasmallcoreandalarge,extensiblelibrary

,mostofwhataprogrammeris

likelytoneedalreadyexistsinwritten,testedfromandcanbe

usedwithsimplelibrarycallsgluedtogetherwithasmall

amountofnewcode.

OnemeasureofPython'sprogrammer-friendlinessisitsreliance

onasimpleindentationhierarchyforgroupingsectionsof

code,whicheliminatestheneedtomatchBegin/Endstatements

ortocountparentheses,bracketsorcurlybraces.

isageneral-purposeprogramminglanguagethat

offersfarmorestructureandsupportforlargeprogramsthan

simpleshellscriptsandmuchmoreerrorscheckingthan

lower-levellanguagessuchasC.

Pythonisobject-orientedwithbuilt-in,high-leveldata

types,eapplied

tomuchlargerproblemsthanlanguagessuchasAwkoreven

Perlcan,yetitremainsaseasytouseasthoselanguages.


本文标签: 番石榴 图片 作者 功效