📄 index.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0051)http://www.honors.montana.edu/~jjc/easytut/easytut/ -->
<!--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>Non-Programmers Tutorial For Python</TITLE>
<META content="Non-Programmers Tutorial For Python" 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="Non-Programmers Tutorial For Python_files/easytut.css"
rel=STYLESHEET><LINK href="node1.html" rel=next></HEAD>
<BODY><!--Navigation Panel--><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html12><IMG align=bottom alt=next border=0 height=24
src="Non-Programmers Tutorial For Python_files/next.png" width=37></A> <IMG
align=bottom alt=up border=0 height=24
src="Non-Programmers Tutorial For Python_files/up_g.png" width=26> <IMG
align=bottom alt=previous border=0 height=24
src="Non-Programmers Tutorial For Python_files/prev_g.png" width=63> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html"
name=tex2html10><IMG align=bottom alt=contents border=0 height=24
src="Non-Programmers Tutorial For Python_files/contents.png" width=65></A>
<BR><B>Next:</B> <A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html13>Front Matter</A> <B><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html"
name=tex2html11>Contents</A></B> <BR><BR><!--End of Navigation Panel-->
<P>
<H1 align=center>Non-Programmers Tutorial For Python</H1>
<P align=center><STRONG>Josh Cogliati</STRONG></P>
<P><B>Copyright(c) 1999-2002 Josh Cogliati. </B>
<P>Permission is granted to anyone to make or distribute verbatim copies of this
document as received, in any medium, provided that the copyright notice and
permission notice are preserved, and that the distributor grants the recipient
permission for further redistribution as permitted by this notice.
<P>Permission is granted to distribute modified versions of this document, or of
portions of it, under the above conditions, provided also that they carry
prominent notices stating who last altered them.
<P>All example python source code in this tutorial is granted to the public
domain. Therefore you may modify it and relicense it under any license you
please.
<P><BR>
<HR>
<!--Table of Child-Links--><A name=CHILD_LINKS></A>
<UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node1.html"
name=tex2html14>Front Matter</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html"
name=tex2html15>Contents</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html"
name=tex2html16>Intro</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00310000000000000000"
name=tex2html17>First things first</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00320000000000000000"
name=tex2html18>Installing Python</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00330000000000000000"
name=tex2html19>Interactive Mode</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00340000000000000000"
name=tex2html20>Creating and Running Programs</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node3.html#SECTION00350000000000000000"
name=tex2html21>Using Python from the command line</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html"
name=tex2html22>Hello, World</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00410000000000000000"
name=tex2html23>What you should know</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00420000000000000000"
name=tex2html24>Printing</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00430000000000000000"
name=tex2html25>Expressions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00440000000000000000"
name=tex2html26>Talking to humans (and other intelligent beings)</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00450000000000000000"
name=tex2html27>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node4.html#SECTION00460000000000000000"
name=tex2html28>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html"
name=tex2html29>Who Goes There?</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00510000000000000000"
name=tex2html30>Input and Variables</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00520000000000000000"
name=tex2html31>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node5.html#SECTION00530000000000000000"
name=tex2html32>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html"
name=tex2html33>Count to 10</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html#SECTION00610000000000000000"
name=tex2html34>While loops</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node6.html#SECTION00620000000000000000"
name=tex2html35>Examples</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html"
name=tex2html36>Decisions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00710000000000000000"
name=tex2html37>If statement</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00720000000000000000"
name=tex2html38>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html#SECTION00730000000000000000"
name=tex2html39>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html"
name=tex2html40>Debugging</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00810000000000000000"
name=tex2html41>What is debugging?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00820000000000000000"
name=tex2html42>What should the program do?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00830000000000000000"
name=tex2html43>What does the program do?</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00840000000000000000"
name=tex2html44>How do I fix the program?</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html"
name=tex2html45>Defining Functions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00910000000000000000"
name=tex2html46>Creating Functions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00920000000000000000"
name=tex2html47>Variables in functions</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00930000000000000000"
name=tex2html48>Function walkthrough</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00940000000000000000"
name=tex2html49>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html#SECTION00950000000000000000"
name=tex2html50>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html"
name=tex2html51>Lists</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001010000000000000000"
name=tex2html52>Variables with more than one value</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001020000000000000000"
name=tex2html53>More features of lists</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001030000000000000000"
name=tex2html54>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node10.html#SECTION001040000000000000000"
name=tex2html55>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node11.html"
name=tex2html56>For Loops</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html"
name=tex2html57>Boolean Expressions</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html#SECTION001210000000000000000"
name=tex2html58>Examples</A>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node12.html#SECTION001220000000000000000"
name=tex2html59>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node13.html"
name=tex2html60>Dictionaries</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node14.html"
name=tex2html61>Using Modules</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node14.html#SECTION001410000000000000000"
name=tex2html62>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node15.html"
name=tex2html63>More on Lists</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node16.html"
name=tex2html64>Revenge of the Strings</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node16.html#SECTION001610000000000000000"
name=tex2html65>Examples</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node17.html"
name=tex2html66>File IO</A>
<UL>
<LI><A
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node17.html#SECTION001710000000000000000"
name=tex2html67>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node18.html"
name=tex2html68>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=tex2html69>Exercises</A> </LI></UL>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node19.html"
name=tex2html70>The End</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node20.html"
name=tex2html71>FAQ</A>
<LI><A href="http://www.honors.montana.edu/~jjc/easytut/easytut/node21.html"
name=tex2html72>About this document ...</A> </LI></UL><!--End of Table of Child-Links--><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 + -