1 Star 0 Fork 0

50小小树/python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 61.12 KB
一键复制 编辑 原始数据 按行查看 历史
cheng 提交于 2018-06-21 22:57 . edit
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183
<!DOCTYPE HTML>
<html lang="zh-tw" >
<!-- Start book python基础语言 -->
<head>
<!-- head:start -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Python基础 | python基础语言</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="传智播客-python学科-python基础语法">
<meta name="generator" content="GitBook 2.6.7">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
<link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-splitter/splitter.css">
<link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-emphasize/plugin.css">
<link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/plugins/gitbook-plugin-fontsettings/website.css">
<link rel="next" href="./03day/index.html" />
<!-- head:end -->
</head>
<body>
<!-- body:start -->
<div class="book"
data-level="0"
data-chapter-title="Python基础"
data-filepath="README.md"
data-basepath="."
data-revision="Thu Apr 06 2017 08:01:50 GMT+0800 (CST)"
data-innerlanguage="">
<div class="book-summary">
<nav role="navigation">
<ul class="summary">
<li class="chapter active" data-level="0" data-path="index.html">
<a href="./index.html">
<i class="fa fa-check"></i>
Python基础
</a>
</li>
<li class="chapter " data-level="1" data-path="03day/index.html">
<a href="./03day/index.html">
<i class="fa fa-check"></i>
<b>1.</b>
认识python和基础知识
</a>
<ul class="articles">
<li class="chapter " data-level="1.1" data-path="03day/section.1.html">
<a href="./03day/section.1.html">
<i class="fa fa-check"></i>
<b>1.1.</b>
认识python(了解)
</a>
</li>
<li class="chapter " data-level="1.2" data-path="03day/section.2.html">
<a href="./03day/section.2.html">
<i class="fa fa-check"></i>
<b>1.2.</b>
第一个python程序
</a>
</li>
<li class="chapter " data-level="1.3" data-path="03day/section.3.html">
<a href="./03day/section.3.html">
<i class="fa fa-check"></i>
<b>1.3.</b>
注释
</a>
</li>
<li class="chapter " data-level="1.4" data-path="03day/section.4.html">
<a href="./03day/section.4.html">
<i class="fa fa-check"></i>
<b>1.4.</b>
变量以及类型
</a>
</li>
<li class="chapter " data-level="1.5" data-path="03day/section.5.html">
<a href="./03day/section.5.html">
<i class="fa fa-check"></i>
<b>1.5.</b>
标示符和关键字
</a>
</li>
<li class="chapter " data-level="1.6" data-path="03day/section.6.html">
<a href="./03day/section.6.html">
<i class="fa fa-check"></i>
<b>1.6.</b>
输出
</a>
</li>
<li class="chapter " data-level="1.7" data-path="03day/section.4.1.html">
<a href="./03day/section.4.1.html">
<i class="fa fa-check"></i>
<b>1.7.</b>
输入
</a>
</li>
<li class="chapter " data-level="1.8" data-path="03day/section.7.html">
<a href="./03day/section.7.html">
<i class="fa fa-check"></i>
<b>1.8.</b>
运算符
</a>
</li>
<li class="chapter " data-level="1.9" data-path="03day/section.10.html">
<a href="./03day/section.10.html">
<i class="fa fa-check"></i>
<b>1.9.</b>
数据类型转换
</a>
</li>
<li class="chapter " data-level="1.10" data-path="04day/section.1.html">
<a href="./04day/section.1.html">
<i class="fa fa-check"></i>
<b>1.10.</b>
判断语句介绍
</a>
</li>
<li class="chapter " data-level="1.11" data-path="04day/section.2.html">
<a href="./04day/section.2.html">
<i class="fa fa-check"></i>
<b>1.11.</b>
if语句
</a>
</li>
<li class="chapter " data-level="1.12" data-path="04day/section.3.html">
<a href="./04day/section.3.html">
<i class="fa fa-check"></i>
<b>1.12.</b>
比较、关系运算符
</a>
</li>
<li class="chapter " data-level="1.13" data-path="03day/section.99.html">
<a href="./03day/section.99.html">
<i class="fa fa-check"></i>
<b>1.13.</b>
作业
</a>
</li>
<li class="chapter " data-level="1.14" data-path="03day/section.8.html">
<a href="./03day/section.8.html">
<i class="fa fa-check"></i>
<b>1.14.</b>
附录-推荐的python电子书
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2" data-path="04day/index.html">
<a href="./04day/index.html">
<i class="fa fa-check"></i>
<b>2.</b>
判断语句和循环语句
</a>
<ul class="articles">
<li class="chapter " data-level="2.1" data-path="04day/section.4.html">
<a href="./04day/section.4.html">
<i class="fa fa-check"></i>
<b>2.1.</b>
if-else
</a>
</li>
<li class="chapter " data-level="2.2" data-path="04day/section.4.1.html">
<a href="./04day/section.4.1.html">
<i class="fa fa-check"></i>
<b>2.2.</b>
elif
</a>
</li>
<li class="chapter " data-level="2.3" data-path="04day/section.5.html">
<a href="./04day/section.5.html">
<i class="fa fa-check"></i>
<b>2.3.</b>
if嵌套
</a>
</li>
<li class="chapter " data-level="2.4" data-path="04day/section.6.html">
<a href="./04day/section.6.html">
<i class="fa fa-check"></i>
<b>2.4.</b>
if应用:猜拳游戏
</a>
</li>
<li class="chapter " data-level="2.5" data-path="04day/section.7.html">
<a href="./04day/section.7.html">
<i class="fa fa-check"></i>
<b>2.5.</b>
循环语句介绍
</a>
</li>
<li class="chapter " data-level="2.6" data-path="04day/section.8.html">
<a href="./04day/section.8.html">
<i class="fa fa-check"></i>
<b>2.6.</b>
while循环
</a>
</li>
<li class="chapter " data-level="2.7" data-path="04day/section.8.1.html">
<a href="./04day/section.8.1.html">
<i class="fa fa-check"></i>
<b>2.7.</b>
while循环应用
</a>
</li>
<li class="chapter " data-level="2.8" data-path="04day/section.9.html">
<a href="./04day/section.9.html">
<i class="fa fa-check"></i>
<b>2.8.</b>
while循环的嵌套以及应用
</a>
</li>
<li class="chapter " data-level="2.9" data-path="04day/section.11.html">
<a href="./04day/section.11.html">
<i class="fa fa-check"></i>
<b>2.9.</b>
for循环
</a>
</li>
<li class="chapter " data-level="2.10" data-path="04day/section.10.html">
<a href="./04day/section.10.html">
<i class="fa fa-check"></i>
<b>2.10.</b>
break和continue
</a>
</li>
<li class="chapter " data-level="2.11" data-path="04day/section.12.html">
<a href="./04day/section.12.html">
<i class="fa fa-check"></i>
<b>2.11.</b>
总结
</a>
</li>
<li class="chapter " data-level="2.12" data-path="04day/section.99.html">
<a href="./04day/section.99.html">
<i class="fa fa-check"></i>
<b>2.12.</b>
作业
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="3" data-path="05day/index.html">
<a href="./05day/index.html">
<i class="fa fa-check"></i>
<b>3.</b>
字符串、列表、元组、字典
</a>
<ul class="articles">
<li class="chapter " data-level="3.1" data-path="05day/section.1.html">
<a href="./05day/section.1.html">
<i class="fa fa-check"></i>
<b>3.1.</b>
字符串介绍
</a>
</li>
<li class="chapter " data-level="3.2" data-path="05day/section.2.html">
<a href="./05day/section.2.html">
<i class="fa fa-check"></i>
<b>3.2.</b>
字符串输出
</a>
</li>
<li class="chapter " data-level="3.3" data-path="05day/section.3.html">
<a href="./05day/section.3.html">
<i class="fa fa-check"></i>
<b>3.3.</b>
字符串输入
</a>
</li>
<li class="chapter " data-level="3.4" data-path="05day/section.4.html">
<a href="./05day/section.4.html">
<i class="fa fa-check"></i>
<b>3.4.</b>
下标和切片
</a>
</li>
<li class="chapter " data-level="3.5" data-path="05day/section.4.2.html">
<a href="./05day/section.4.2.html">
<i class="fa fa-check"></i>
<b>3.5.</b>
字符串常见操作
</a>
</li>
<li class="chapter " data-level="3.6" data-path="05day/section.5.html">
<a href="./05day/section.5.html">
<i class="fa fa-check"></i>
<b>3.6.</b>
列表介绍
</a>
</li>
<li class="chapter " data-level="3.7" data-path="05day/section.6.html">
<a href="./05day/section.6.html">
<i class="fa fa-check"></i>
<b>3.7.</b>
列表的循环遍历
</a>
</li>
<li class="chapter " data-level="3.8" data-path="05day/section.7.html">
<a href="./05day/section.7.html">
<i class="fa fa-check"></i>
<b>3.8.</b>
列表的常见操作
</a>
</li>
<li class="chapter " data-level="3.9" data-path="05day/section.8.html">
<a href="./05day/section.8.html">
<i class="fa fa-check"></i>
<b>3.9.</b>
列表的嵌套
</a>
</li>
<li class="chapter " data-level="3.10" data-path="06day/section.3.html">
<a href="./06day/section.3.html">
<i class="fa fa-check"></i>
<b>3.10.</b>
元组
</a>
</li>
<li class="chapter " data-level="3.11" data-path="06day/section.1.html">
<a href="./06day/section.1.html">
<i class="fa fa-check"></i>
<b>3.11.</b>
字典介绍
</a>
</li>
<li class="chapter " data-level="3.12" data-path="06day/section.2.html">
<a href="./06day/section.2.html">
<i class="fa fa-check"></i>
<b>3.12.</b>
字典的常见操作1
</a>
</li>
<li class="chapter " data-level="3.13" data-path="06day/section.2.1.html">
<a href="./06day/section.2.1.html">
<i class="fa fa-check"></i>
<b>3.13.</b>
字典的常见操作2
</a>
</li>
<li class="chapter " data-level="3.14" data-path="06day/section.2.2.html">
<a href="./06day/section.2.2.html">
<i class="fa fa-check"></i>
<b>3.14.</b>
字典的遍历
</a>
</li>
<li class="chapter " data-level="3.15" data-path="06day/section.2.3.html">
<a href="./06day/section.2.3.html">
<i class="fa fa-check"></i>
<b>3.15.</b>
公共方法
</a>
</li>
<li class="chapter " data-level="3.16" data-path="05day/section.99.html">
<a href="./05day/section.99.html">
<i class="fa fa-check"></i>
<b>3.16.</b>
作业
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="4" data-path="06day/index.html">
<a href="./06day/index.html">
<i class="fa fa-check"></i>
<b>4.</b>
函数
</a>
<ul class="articles">
<li class="chapter " data-level="4.1" data-path="07day/section.1.html">
<a href="./07day/section.1.html">
<i class="fa fa-check"></i>
<b>4.1.</b>
函数介绍
</a>
</li>
<li class="chapter " data-level="4.2" data-path="07day/section.2.html">
<a href="./07day/section.2.html">
<i class="fa fa-check"></i>
<b>4.2.</b>
函数定义、调用
</a>
</li>
<li class="chapter " data-level="4.3" data-path="07day/section.2.1.html">
<a href="./07day/section.2.1.html">
<i class="fa fa-check"></i>
<b>4.3.</b>
函数的文档说明
</a>
</li>
<li class="chapter " data-level="4.4" data-path="07day/section.3.html">
<a href="./07day/section.3.html">
<i class="fa fa-check"></i>
<b>4.4.</b>
函数参数(一)
</a>
</li>
<li class="chapter " data-level="4.5" data-path="07day/section.4.html">
<a href="./07day/section.4.html">
<i class="fa fa-check"></i>
<b>4.5.</b>
函数返回值(一)
</a>
</li>
<li class="chapter " data-level="4.6" data-path="07day/section.5.html">
<a href="./07day/section.5.html">
<i class="fa fa-check"></i>
<b>4.6.</b>
4种函数的类型
</a>
</li>
<li class="chapter " data-level="4.7" data-path="07day/section.6.html">
<a href="./07day/section.6.html">
<i class="fa fa-check"></i>
<b>4.7.</b>
函数的嵌套调用
</a>
</li>
<li class="chapter " data-level="4.8" data-path="07day/section.6.1.html">
<a href="./07day/section.6.1.html">
<i class="fa fa-check"></i>
<b>4.8.</b>
函数应用:打印图形和数学计算
</a>
</li>
<li class="chapter " data-level="4.9" data-path="07day/section.7.0.html">
<a href="./07day/section.7.0.html">
<i class="fa fa-check"></i>
<b>4.9.</b>
局部变量
</a>
</li>
<li class="chapter " data-level="4.10" data-path="07day/section.8.html">
<a href="./07day/section.8.html">
<i class="fa fa-check"></i>
<b>4.10.</b>
全局变量
</a>
</li>
<li class="chapter " data-level="4.11" data-path="07day/section.8.1.html">
<a href="./07day/section.8.1.html">
<i class="fa fa-check"></i>
<b>4.11.</b>
函数应用:学生管理系统
</a>
</li>
<li class="chapter " data-level="4.12" data-path="06day/section.4.1.html">
<a href="./06day/section.4.1.html">
<i class="fa fa-check"></i>
<b>4.12.</b>
函数返回值(二)
</a>
</li>
<li class="chapter " data-level="4.13" data-path="06day/section.3.1.html">
<a href="./06day/section.3.1.html">
<i class="fa fa-check"></i>
<b>4.13.</b>
函数参数(二)
</a>
</li>
<li class="chapter " data-level="4.14" data-path="06day/section.2.4.html">
<a href="./06day/section.2.4.html">
<i class="fa fa-check"></i>
<b>4.14.</b>
引用
</a>
</li>
<li class="chapter " data-level="4.15" data-path="07day/section.9.html">
<a href="./07day/section.9.html">
<i class="fa fa-check"></i>
<b>4.15.</b>
递归函数
</a>
</li>
<li class="chapter " data-level="4.16" data-path="07day/section.9.1.html">
<a href="./07day/section.9.1.html">
<i class="fa fa-check"></i>
<b>4.16.</b>
匿名函数
</a>
</li>
<li class="chapter " data-level="4.17" data-path="07day/section.7.html">
<a href="./07day/section.7.html">
<i class="fa fa-check"></i>
<b>4.17.</b>
函数使用注意事项
</a>
</li>
<li class="chapter " data-level="4.18" data-path="07day/section.99.html">
<a href="./07day/section.99.html">
<i class="fa fa-check"></i>
<b>4.18.</b>
作业
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="5" data-path="08day/index.html">
<a href="./08day/index.html">
<i class="fa fa-check"></i>
<b>5.</b>
文件操作、综合应用
</a>
<ul class="articles">
<li class="chapter " data-level="5.1" data-path="08day/section.1.html">
<a href="./08day/section.1.html">
<i class="fa fa-check"></i>
<b>5.1.</b>
文件操作介绍
</a>
</li>
<li class="chapter " data-level="5.2" data-path="08day/section.2.html">
<a href="./08day/section.2.html">
<i class="fa fa-check"></i>
<b>5.2.</b>
文件的打开与关闭
</a>
</li>
<li class="chapter " data-level="5.3" data-path="08day/section.3.html">
<a href="./08day/section.3.html">
<i class="fa fa-check"></i>
<b>5.3.</b>
文件的读写
</a>
</li>
<li class="chapter " data-level="5.4" data-path="08day/section.3.1.html">
<a href="./08day/section.3.1.html">
<i class="fa fa-check"></i>
<b>5.4.</b>
应用1:制作文件的备份
</a>
</li>
<li class="chapter " data-level="5.5" data-path="08day/section.4.html">
<a href="./08day/section.4.html">
<i class="fa fa-check"></i>
<b>5.5.</b>
文件的定位读写
</a>
</li>
<li class="chapter " data-level="5.6" data-path="08day/section.5.html">
<a href="./08day/section.5.html">
<i class="fa fa-check"></i>
<b>5.6.</b>
文件的重命名、删除
</a>
</li>
<li class="chapter " data-level="5.7" data-path="08day/section.6.html">
<a href="./08day/section.6.html">
<i class="fa fa-check"></i>
<b>5.7.</b>
文件夹的相关操作
</a>
</li>
<li class="chapter " data-level="5.8" data-path="08day/section.9.html">
<a href="./08day/section.9.html">
<i class="fa fa-check"></i>
<b>5.8.</b>
应用2:批量修改文件名
</a>
</li>
<li class="chapter " data-level="5.9" data-path="08day/section.10.html">
<a href="./08day/section.10.html">
<i class="fa fa-check"></i>
<b>5.9.</b>
综合应用:学生管理系统(文件版)
</a>
</li>
<li class="chapter " data-level="5.10" data-path="08day/section.99.html">
<a href="./08day/section.99.html">
<i class="fa fa-check"></i>
<b>5.10.</b>
作业
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="6" data-path="09day/index.html">
<a href="./09day/index.html">
<i class="fa fa-check"></i>
<b>6.</b>
面向对象1
</a>
<ul class="articles">
<li class="chapter " data-level="6.1" data-path="09day/section.1.html">
<a href="./09day/section.1.html">
<i class="fa fa-check"></i>
<b>6.1.</b>
面向对象编程介绍
</a>
</li>
<li class="chapter " data-level="6.2" data-path="09day/section.2.html">
<a href="./09day/section.2.html">
<i class="fa fa-check"></i>
<b>6.2.</b>
类和对象
</a>
</li>
<li class="chapter " data-level="6.3" data-path="09day/section.3.html">
<a href="./09day/section.3.html">
<i class="fa fa-check"></i>
<b>6.3.</b>
定义类
</a>
</li>
<li class="chapter " data-level="6.4" data-path="09day/section.4.html">
<a href="./09day/section.4.html">
<i class="fa fa-check"></i>
<b>6.4.</b>
创建对象
</a>
</li>
<li class="chapter " data-level="6.5" data-path="09day/section.5.html">
<a href="./09day/section.5.html">
<i class="fa fa-check"></i>
<b>6.5.</b>
__init__方法
</a>
</li>
<li class="chapter " data-level="6.6" data-path="09day/section.5.1.html">
<a href="./09day/section.5.1.html">
<i class="fa fa-check"></i>
<b>6.6.</b>
应用:创建多个对象
</a>
</li>
<li class="chapter " data-level="6.7" data-path="09day/section.4.4.html">
<a href="./09day/section.4.4.html">
<i class="fa fa-check"></i>
<b>6.7.</b>
&quot;魔法&quot;方法
</a>
</li>
<li class="chapter " data-level="6.8" data-path="09day/section.4.1.html">
<a href="./09day/section.4.1.html">
<i class="fa fa-check"></i>
<b>6.8.</b>
self
</a>
</li>
<li class="chapter " data-level="6.9" data-path="09day/section.5.2.html">
<a href="./09day/section.5.2.html">
<i class="fa fa-check"></i>
<b>6.9.</b>
应用:烤地瓜
</a>
</li>
<li class="chapter " data-level="6.10" data-path="09day/section.5.4.html">
<a href="./09day/section.5.4.html">
<i class="fa fa-check"></i>
<b>6.10.</b>
隐藏数据
</a>
</li>
<li class="chapter " data-level="6.11" data-path="09day/section.5.3.html">
<a href="./09day/section.5.3.html">
<i class="fa fa-check"></i>
<b>6.11.</b>
应用:存放家具
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="7" data-path="10day/index.html">
<a href="./10day/index.html">
<i class="fa fa-check"></i>
<b>7.</b>
面向对象2
</a>
<ul class="articles">
<li class="chapter " data-level="7.1" data-path="09day/section.12.html">
<a href="./09day/section.12.html">
<i class="fa fa-check"></i>
<b>7.1.</b>
应用:老王开枪
</a>
</li>
<li class="chapter " data-level="7.2" data-path="09day/section.4.3.html">
<a href="./09day/section.4.3.html">
<i class="fa fa-check"></i>
<b>7.2.</b>
保护对象的属性
</a>
</li>
<li class="chapter " data-level="7.3" data-path="09day/section.6.html">
<a href="./09day/section.6.html">
<i class="fa fa-check"></i>
<b>7.3.</b>
__del__方法
</a>
</li>
<li class="chapter " data-level="7.4" data-path="09day/section.7.html">
<a href="./09day/section.7.html">
<i class="fa fa-check"></i>
<b>7.4.</b>
单继承
</a>
</li>
<li class="chapter " data-level="7.5" data-path="09day/section.8.html">
<a href="./09day/section.8.html">
<i class="fa fa-check"></i>
<b>7.5.</b>
多继承
</a>
</li>
<li class="chapter " data-level="7.6" data-path="09day/section.8.1.html">
<a href="./09day/section.8.1.html">
<i class="fa fa-check"></i>
<b>7.6.</b>
重写父类方法与调用父类方法
</a>
</li>
<li class="chapter " data-level="7.7" data-path="09day/section.9.html">
<a href="./09day/section.9.html">
<i class="fa fa-check"></i>
<b>7.7.</b>
多态
</a>
</li>
<li class="chapter " data-level="7.8" data-path="09day/section.9.1.html">
<a href="./09day/section.9.1.html">
<i class="fa fa-check"></i>
<b>7.8.</b>
类属性、实例属性
</a>
</li>
<li class="chapter " data-level="7.9" data-path="09day/section.10.html">
<a href="./09day/section.10.html">
<i class="fa fa-check"></i>
<b>7.9.</b>
静态方法和类方法
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="8" data-path="11day/index.html">
<a href="./11day/index.html">
<i class="fa fa-check"></i>
<b>8.</b>
面向对象3、异常、模块
</a>
<ul class="articles">
<li class="chapter " data-level="8.1" data-path="09day/section.15.html">
<a href="./09day/section.15.html">
<i class="fa fa-check"></i>
<b>8.1.</b>
练习:设计类
</a>
</li>
<li class="chapter " data-level="8.2" data-path="09day/section.14.html">
<a href="./09day/section.14.html">
<i class="fa fa-check"></i>
<b>8.2.</b>
工厂模式
</a>
</li>
<li class="chapter " data-level="8.3" data-path="11day/section.4.html">
<a href="./11day/section.4.html">
<i class="fa fa-check"></i>
<b>8.3.</b>
__new__方法
</a>
</li>
<li class="chapter " data-level="8.4" data-path="09day/section.13.html">
<a href="./09day/section.13.html">
<i class="fa fa-check"></i>
<b>8.4.</b>
单例模式
</a>
</li>
<li class="chapter " data-level="8.5" data-path="10day/section.1.html">
<a href="./10day/section.1.html">
<i class="fa fa-check"></i>
<b>8.5.</b>
异常介绍
</a>
</li>
<li class="chapter " data-level="8.6" data-path="10day/section.2.html">
<a href="./10day/section.2.html">
<i class="fa fa-check"></i>
<b>8.6.</b>
捕获异常
</a>
</li>
<li class="chapter " data-level="8.7" data-path="10day/section.2.2.html">
<a href="./10day/section.2.2.html">
<i class="fa fa-check"></i>
<b>8.7.</b>
异常的传递
</a>
</li>
<li class="chapter " data-level="8.8" data-path="10day/section.3.html">
<a href="./10day/section.3.html">
<i class="fa fa-check"></i>
<b>8.8.</b>
抛出自定义的异常
</a>
</li>
<li class="chapter " data-level="8.9" data-path="10day/section.3.2.html">
<a href="./10day/section.3.2.html">
<i class="fa fa-check"></i>
<b>8.9.</b>
异常处理中抛出异常
</a>
</li>
<li class="chapter " data-level="8.10" data-path="08day/section.7.html">
<a href="./08day/section.7.html">
<i class="fa fa-check"></i>
<b>8.10.</b>
模块介绍
</a>
</li>
<li class="chapter " data-level="8.11" data-path="08day/section.8.html">
<a href="./08day/section.8.html">
<i class="fa fa-check"></i>
<b>8.11.</b>
模块制作
</a>
</li>
<li class="chapter " data-level="8.12" data-path="08day/section.8.3.html">
<a href="./08day/section.8.3.html">
<i class="fa fa-check"></i>
<b>8.12.</b>
模块中的__all__
</a>
</li>
<li class="chapter " data-level="8.13" data-path="08day/section.7.1.html">
<a href="./08day/section.7.1.html">
<i class="fa fa-check"></i>
<b>8.13.</b>
python中的包
</a>
</li>
<li class="chapter " data-level="8.14" data-path="08day/section.8.1.html">
<a href="./08day/section.8.1.html">
<i class="fa fa-check"></i>
<b>8.14.</b>
模块发布
</a>
</li>
<li class="chapter " data-level="8.15" data-path="08day/section.8.2.html">
<a href="./08day/section.8.2.html">
<i class="fa fa-check"></i>
<b>8.15.</b>
模块安装、使用
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="9" data-path="12day/index.html">
<a href="./12day/index.html">
<i class="fa fa-check"></i>
<b>9.</b>
强化练习
</a>
<ul class="articles">
<li class="chapter " data-level="9.1" data-path="12day/section.3.html">
<a href="./12day/section.3.html">
<i class="fa fa-check"></i>
<b>9.1.</b>
给程序传参数
</a>
</li>
<li class="chapter " data-level="9.2" data-path="12day/section.4.html">
<a href="./12day/section.4.html">
<i class="fa fa-check"></i>
<b>9.2.</b>
列表推导式
</a>
</li>
<li class="chapter " data-level="9.3" data-path="12day/section.5.html">
<a href="./12day/section.5.html">
<i class="fa fa-check"></i>
<b>9.3.</b>
set、list、tuple
</a>
</li>
<li class="chapter " data-level="9.4" data-path="12day/section.2.html">
<a href="./12day/section.2.html">
<i class="fa fa-check"></i>
<b>9.4.</b>
面试题1
</a>
</li>
<li class="chapter " data-level="9.5" data-path="12day/section.1.html">
<a href="./12day/section.1.html">
<i class="fa fa-check"></i>
<b>9.5.</b>
面试题2
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="10" data-path="07day/index.html">
<a href="./07day/index.html">
<i class="fa fa-check"></i>
<b>10.</b>
应用:打飞机
</a>
<ul class="articles">
<li class="chapter " data-level="10.1" data-path="10day/section.5.html">
<a href="./10day/section.5.html">
<i class="fa fa-check"></i>
<b>10.1.</b>
打飞机代码:搭建界面
</a>
</li>
<li class="chapter " data-level="10.2" data-path="10day/section.6.html">
<a href="./10day/section.6.html">
<i class="fa fa-check"></i>
<b>10.2.</b>
打飞机代码:检测键盘
</a>
</li>
<li class="chapter " data-level="10.3" data-path="10day/section.7.html">
<a href="./10day/section.7.html">
<i class="fa fa-check"></i>
<b>10.3.</b>
打飞机代码:显示、控制玩具飞机-面向过程
</a>
</li>
<li class="chapter " data-level="10.4" data-path="10day/section.8.html">
<a href="./10day/section.8.html">
<i class="fa fa-check"></i>
<b>10.4.</b>
打飞机代码:显示、控制玩具飞机-面向对象
</a>
</li>
<li class="chapter " data-level="10.5" data-path="10day/section.9.html">
<a href="./10day/section.9.html">
<i class="fa fa-check"></i>
<b>10.5.</b>
打飞机代码:玩家飞机发射子弹
</a>
</li>
<li class="chapter " data-level="10.6" data-path="10day/section.12.html">
<a href="./10day/section.12.html">
<i class="fa fa-check"></i>
<b>10.6.</b>
打飞机代码:显示敌机
</a>
</li>
<li class="chapter " data-level="10.7" data-path="10day/section.11.html">
<a href="./10day/section.11.html">
<i class="fa fa-check"></i>
<b>10.7.</b>
打飞机代码:优化代码
</a>
</li>
<li class="chapter " data-level="10.8" data-path="10day/section.13.html">
<a href="./10day/section.13.html">
<i class="fa fa-check"></i>
<b>10.8.</b>
打飞机代码:让敌机移动
</a>
</li>
<li class="chapter " data-level="10.9" data-path="10day/section.14.html">
<a href="./10day/section.14.html">
<i class="fa fa-check"></i>
<b>10.9.</b>
打飞机代码:敌机发射子弹
</a>
</li>
<li class="chapter " data-level="10.10" data-path="10day/section.16.html">
<a href="./10day/section.16.html">
<i class="fa fa-check"></i>
<b>10.10.</b>
打飞机代码:代码优化-抽象出基类
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
本書使用 GitBook 釋出
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Actions Left -->
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="./" >python基础语言</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal" id="section-">
</section>
</div>
</div>
</div>
<a href="./03day/index.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 认识python和基础知识"><i class="fa fa-angle-right"></i></a>
</div>
</div>
<script src="gitbook/app.js"></script>
<script src="gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
<script src="gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
<script src="gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
<script src="gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
<script>
require(["gitbook"], function(gitbook) {
var config = {"toggle-chapters":{},"splitter":{},"emphasize":{},"highlight":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
gitbook.start(config);
});
</script>
<!-- body:end -->
</body>
<!-- End of book python基础语言 -->
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wcnq/python.git
git@gitee.com:wcnq/python.git
wcnq
python
python
master

搜索帮助