📄 node2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0061)http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html -->
<!--Converted with LaTeX2HTML 99.2beta6 (1.42)original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>Contents</TITLE>
<META content=Contents name=description>
<META content=easytut name=keywords>
<META content=document name=resource-type>
<META content=global name=distribution>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<META content=text/css http-equiv=Content-Style-Type><LINK
href="node2_files/easytut.css" rel=STYLESHEET><LINK href="node3.html"
rel=next><LINK href="node1.html" rel=previous><LINK href="easytut.html"
rel=up><LINK href="node3.html" rel=next></HEAD>
<BODY><!--Navigation Panel--><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html"
name=tex2html93><IMG align=bottom alt=next border=0 height=24
src="node2_files/next.png" width=37></A> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/easytut.html"
name=tex2html91><IMG align=bottom alt=up border=0 height=24
src="node2_files/up.png" width=26></A> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html85><IMG align=bottom alt=previous border=0 height=24
src="node2_files/prev.png" width=63></A> <BR><B>Next:</B> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html"
name=tex2html94>Intro</A> <B>Up:</B> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/easytut.html"
name=tex2html92>Non-Programmers Tutorial For Python</A> <B>Previous:</B> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html86>Front Matter</A> <BR><BR><!--End of Navigation Panel--><BR>
<H2><A name=SECTION00200000000000000000>Contents</A> </H2><!--Table of Contents-->
<UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html95>Front Matter</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html"
name=tex2html96>Contents</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html"
name=tex2html97>Intro</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00310000000000000000"
name=tex2html98>First things first</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00320000000000000000"
name=tex2html99>Installing Python</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00330000000000000000"
name=tex2html100>Interactive Mode</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00340000000000000000"
name=tex2html101>Creating and Running Programs</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00350000000000000000"
name=tex2html102>Using Python from the command line</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html"
name=tex2html103>Hello, World</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00410000000000000000"
name=tex2html104>What you should know</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00420000000000000000"
name=tex2html105>Printing</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00430000000000000000"
name=tex2html106>Expressions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00440000000000000000"
name=tex2html107>Talking to humans (and other intelligent beings)</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00450000000000000000"
name=tex2html108>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00460000000000000000"
name=tex2html109>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html"
name=tex2html110>Who Goes There?</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00510000000000000000"
name=tex2html111>Input and Variables</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00520000000000000000"
name=tex2html112>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00530000000000000000"
name=tex2html113>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html"
name=tex2html114>Count to 10</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html#SECTION00610000000000000000"
name=tex2html115>While loops</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html#SECTION00620000000000000000"
name=tex2html116>Examples</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html"
name=tex2html117>Decisions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00710000000000000000"
name=tex2html118>If statement</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00720000000000000000"
name=tex2html119>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00730000000000000000"
name=tex2html120>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html"
name=tex2html121>Debugging</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00810000000000000000"
name=tex2html122>What is debugging?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00820000000000000000"
name=tex2html123>What should the program do?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00830000000000000000"
name=tex2html124>What does the program do?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00840000000000000000"
name=tex2html125>How do I fix the program?</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html"
name=tex2html126>Defining Functions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00910000000000000000"
name=tex2html127>Creating Functions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00920000000000000000"
name=tex2html128>Variables in functions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00930000000000000000"
name=tex2html129>Function walkthrough</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00940000000000000000"
name=tex2html130>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00950000000000000000"
name=tex2html131>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html"
name=tex2html132>Lists</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001010000000000000000"
name=tex2html133>Variables with more than one value</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001020000000000000000"
name=tex2html134>More features of lists</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001030000000000000000"
name=tex2html135>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001040000000000000000"
name=tex2html136>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node11.html"
name=tex2html137>For Loops</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html"
name=tex2html138>Boolean Expressions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html#SECTION001210000000000000000"
name=tex2html139>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html#SECTION001220000000000000000"
name=tex2html140>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node13.html"
name=tex2html141>Dictionaries</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node14.html"
name=tex2html142>Using Modules</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node14.html#SECTION001410000000000000000"
name=tex2html143>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node15.html"
name=tex2html144>More on Lists</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node16.html"
name=tex2html145>Revenge of the Strings</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node16.html#SECTION001610000000000000000"
name=tex2html146>Examples</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node17.html"
name=tex2html147>File IO</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node17.html#SECTION001710000000000000000"
name=tex2html148>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node18.html"
name=tex2html149>Dealing with the imperfect (or how to handle errors)</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node18.html#SECTION001810000000000000000"
name=tex2html150>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node19.html"
name=tex2html151>The End</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node20.html"
name=tex2html152>FAQ</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node21.html"
name=tex2html153>About this document ...</A> </LI></UL><!--End of Table of Contents-->
<P><BR>
<HR>
<ADDRESS>Josh Cogliati <A
href="mailto:jjc@honors.montana.edu">jjc@honors.montana.edu</A>
</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -