亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? node8.html

?? Pythone Library reference. it is ok and simple.
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0061)http://www.honors.montana.edu/~jjc/easytut/easytut/node8.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>Debugging</TITLE>
<META content=Debugging 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="node8_files/easytut.css" rel=STYLESHEET><LINK href="node9.html" 
rel=next><LINK href="node7.html" rel=previous><LINK href="easytut.html" 
rel=up><LINK href="node9.html" rel=next></HEAD>
<BODY><!--Navigation Panel--><A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html" 
name=tex2html243><IMG align=bottom alt=next border=0 height=24 
src="node8_files/next.png" width=37></A> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/easytut.html" 
name=tex2html239><IMG align=bottom alt=up border=0 height=24 
src="node8_files/up.png" width=26></A> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html" 
name=tex2html233><IMG align=bottom alt=previous border=0 height=24 
src="node8_files/prev.png" width=63></A> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html" 
name=tex2html241><IMG align=bottom alt=contents border=0 height=24 
src="node8_files/contents.png" width=65></A> <BR><B>Next:</B> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node9.html" 
name=tex2html244>Defining Functions</A> <B>Up:</B> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/easytut.html" 
name=tex2html240>Non-Programmers Tutorial For Python</A> <B>Previous:</B> <A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node7.html" 
name=tex2html234>Decisions</A> &nbsp; <B><A 
href="http://www.honors.montana.edu/~jjc/easytut/easytut/node2.html" 
name=tex2html242>Contents</A></B> <BR><BR><!--End of Navigation Panel--><!--Table of Child-Links--><A 
name=CHILD_LINKS><STRONG>Subsections</STRONG></A> 
<UL>
  <LI><A 
  href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00810000000000000000" 
  name=tex2html245>What is debugging?</A> 
  <LI><A 
  href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00820000000000000000" 
  name=tex2html246>What should the program do?</A> 
  <LI><A 
  href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00830000000000000000" 
  name=tex2html247>What does the program do?</A> 
  <LI><A 
  href="http://www.honors.montana.edu/~jjc/easytut/easytut/node8.html#SECTION00840000000000000000" 
  name=tex2html248>How do I fix the program?</A> </LI></UL><!--End of Table of Child-Links-->
<HR>

<H1><A name=SECTION00800000000000000000>Debugging</A> </H1>
<H1><A name=SECTION00810000000000000000>What is debugging?</A> </H1>
<BLOCKQUOTE>As soon as we started programming, we found to our surprise that 
  it wasn't as easy to get programs right as we had thought. Debugging had to be 
  discovered. I can remember the exact instant when I realized that a large part 
  of my life from then on was going to be spent in finding mistakes in my own 
  programs. </BLOCKQUOTE>
<P>
<BLOCKQUOTE>- Maurice Wilkes discovers debugging, 1949 </BLOCKQUOTE>
<P>By now if you have been messing around with the programs you have probably 
found that sometimes the program does something you didn't want it to do. This 
is fairly common. Debugging is the process of figuring out what the computer is 
doing and then getting it to do what you want it to do. This can be tricky. I 
once spent nearly a week tracking down and fixing a bug that was caused by 
someone putting an <TT>x</TT> where a <TT>y</TT> should have been. 
<P>This chapter will be more abstract than previous chapters. Please tell me if 
it is useful. 
<P>
<H1><A name=SECTION00820000000000000000>What should the program do?</A> </H1>
<P>The first thing to do (this sounds obvious) is to figure out what the program 
should be doing if it is running correctly. Come up with some test cases and see 
what happens. For example, let's say I have a program to compute the perimeter 
of a rectangle (the sum of the length of all the edges). I have the following 
test cases: 
<P>
<TABLE border=1 cellPadding=3>
  <TBODY>
  <TR>
    <TD align=left>width</TD>
    <TD align=left>height</TD>
    <TD align=left>perimeter</TD></TR>
  <TR>
    <TD align=left>3</TD>
    <TD align=left>4</TD>
    <TD align=left>14</TD></TR>
  <TR>
    <TD align=left>2</TD>
    <TD align=left>3</TD>
    <TD align=left>10</TD></TR>
  <TR>
    <TD align=left>4</TD>
    <TD align=left>4</TD>
    <TD align=left>16</TD></TR>
  <TR>
    <TD align=left>2</TD>
    <TD align=left>2</TD>
    <TD align=left>8</TD></TR>
  <TR>
    <TD align=left>5</TD>
    <TD align=left>1</TD>
    <TD align=left>12</TD></TR></TBODY></TABLE>
<P>I now run my program on all of the test cases and see if the program does 
what I expect it to do. If it doesn't then I need to find out what the computer 
is doing. 
<P>More commonly some of the test cases will work and some will not. If that is 
the case you should try and figure out what the working ones have in common. For 
example here is the output for a perimeter program (you get to see the code in a 
minute): 
<P><PRE>Height: 3
Width: 4
perimeter =  15
</PRE><PRE>Height: 2
Width: 3
perimeter =  11
</PRE><PRE>Height: 4
Width: 4
perimeter =  16
</PRE><PRE>Height: 2
Width: 2
perimeter =  8
</PRE><PRE>Height: 5
Width: 1
perimeter =  8
</PRE>
<P>Notice that it didn't work for the first two inputs, it worked for the next 
two and it didn't work on the last one. Try and figure out what is in common 
with the working ones. Once you have some idea what the problem is finding the 
cause is easier. With your own programs you should try more test cases if you 
need them. 
<P>
<H1><A name=SECTION00830000000000000000>What does the program do?</A> </H1>
<P>The next thing to do is to look at the source code. One of the most important 
things to do while programming is reading source code. The primary way to do 
this is code walkthroughs. 
<P>A code walkthrough starts at the first line, and works its way down until the 
program is done. <TT>While</TT> loops and <TT>if</TT> statements mean that some 
lines may never be run and some lines are run many times. At each line you 
figure out what Python has done. 
<P>Lets start with the simple perimeter program. Don't type it in, you are going 
to read it, not run it. The source code is: 
<P><PRE>height = input("Height: ")
width = input("Width: ")
print "perimeter = ",width+height+width+width
</PRE>
<P><B>Question: </B>What is the first line Python runs? 
<P><B>Answer: </B>The first line is alway run first. In this case it is: 
<CODE>height = input("Height: ")</CODE> 
<P><B>Question: </B>What does that line do? 
<P><B>Answer: </B>Prints <TT>Height: </TT>, waits for the user to type a number 
in, and puts that in the variable height. 
<P><B>Question: </B>What is the next line that runs? 
<P><B>Answer: </B>In general, it is the next line down which is: <CODE>width = 
input("Width: ")</CODE> 
<P><B>Question: </B>What does that line do? 
<P><B>Answer: </B>Prints <TT>Width: </TT>, waits for the user to type a number 
in, and puts what the user types in the variable width. 
<P><B>Question: </B>What is the next line that runs? 
<P><B>Answer: </B>When the next line is not indented more or less than the 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
无吗不卡中文字幕| 日韩黄色小视频| 一区二区三区四区激情| 亚洲综合一区二区| 日本va欧美va精品| 九九久久精品视频| av电影天堂一区二区在线观看| 欧洲一区在线观看| 精品久久久久久久久久久院品网| 国产精品电影院| 免费欧美高清视频| 成人教育av在线| 7777精品伊人久久久大香线蕉 | 亚洲四区在线观看| 午夜不卡av在线| 国产不卡视频在线观看| 欧美私模裸体表演在线观看| 久久色中文字幕| 亚洲一区二区三区美女| 国产另类ts人妖一区二区| 欧美制服丝袜第一页| 久久精品亚洲精品国产欧美| 亚洲成av人片一区二区三区| 国产一区二区主播在线| 欧美曰成人黄网| 久久免费看少妇高潮| 亚洲h在线观看| 白白色亚洲国产精品| 欧美电影免费提供在线观看| 中文字幕一区二区三区四区不卡| 奇米色777欧美一区二区| 91视视频在线观看入口直接观看www | 欧美久久久久久久久久| 欧美国产1区2区| 免费观看成人av| 最近中文字幕一区二区三区| 日韩电影网1区2区| 欧美在线视频全部完| 亚洲国产精品av| 久久国内精品视频| 欧美色网站导航| 亚洲三级小视频| 国产成人aaa| 欧美成人vr18sexvr| 亚洲线精品一区二区三区八戒| 国产91在线看| 久久久久久亚洲综合影院红桃| 日本视频在线一区| 欧美日韩一区二区三区四区五区| 国产精品二三区| 成人动漫一区二区三区| 久久久久久久久久久久久女国产乱| 亚洲成人av一区| 在线日韩一区二区| 亚洲人成网站影音先锋播放| 成人黄色片在线观看| 久久人人97超碰com| 九九九精品视频| 欧美一区二区在线不卡| 亚洲大片在线观看| 欧美天堂一区二区三区| 亚洲精品欧美二区三区中文字幕| av福利精品导航| 中文字幕亚洲一区二区va在线| 国产精品91一区二区| 亚洲一区二区三区三| 91麻豆精品国产| 精品伦理精品一区| 美女精品一区二区| 8x8x8国产精品| 日产欧产美韩系列久久99| 欧美精品v国产精品v日韩精品| 性感美女极品91精品| 欧美日本一区二区三区四区| 五月婷婷激情综合| 欧美丰满少妇xxxxx高潮对白 | 一本一道久久a久久精品综合蜜臀| 国产精品午夜久久| 波多野结衣中文一区| 国产精品久久一级| 99v久久综合狠狠综合久久| 亚洲蜜桃精久久久久久久| 日本久久电影网| 亚洲va国产天堂va久久en| 91精品欧美一区二区三区综合在| 麻豆精品在线观看| 久久午夜电影网| 丁香网亚洲国际| 中文字幕av免费专区久久| 成人av在线看| 亚洲综合一区二区三区| 6080亚洲精品一区二区| 极品美女销魂一区二区三区| 国产三级一区二区| av中文字幕不卡| 亚洲一区二区三区国产| 欧美一区日韩一区| 国产精品自产自拍| 亚洲人妖av一区二区| 欧美三区在线视频| 黄色日韩三级电影| 国产精品美女久久久久aⅴ | 一区二区在线观看不卡| 欧美喷潮久久久xxxxx| 精品一区二区日韩| 国产精品久久久久久久久图文区| 色88888久久久久久影院野外| 婷婷一区二区三区| 欧美精品一区二区三区四区| 波多野结衣精品在线| 午夜久久久久久久久久一区二区| 日韩亚洲欧美在线| 国v精品久久久网| 亚洲综合小说图片| 久久亚洲综合av| 91蜜桃传媒精品久久久一区二区| 三级在线观看一区二区| 国产三区在线成人av| 欧美日韩一区二区欧美激情 | 中文字幕精品一区二区精品绿巨人| 91麻豆123| 久久精品国产第一区二区三区| 国产精品免费av| 91精品黄色片免费大全| 粉嫩欧美一区二区三区高清影视 | 欧美裸体一区二区三区| 国产精品18久久久久久久网站| 一区二区三区免费看视频| 精品理论电影在线观看| 色屁屁一区二区| 国产在线精品国自产拍免费| 一区二区高清在线| 久久久精品免费网站| 欧美久久久久久久久久| 99精品热视频| 黄色资源网久久资源365| 一区二区三区国产精华| 欧美国产亚洲另类动漫| 884aa四虎影成人精品一区| k8久久久一区二区三区| 久久丁香综合五月国产三级网站| 亚洲综合在线免费观看| 欧美精彩视频一区二区三区| 91精品蜜臀在线一区尤物| 91蝌蚪porny| 国产激情一区二区三区四区 | 欧美精三区欧美精三区| 成人精品免费看| 久久精品国产一区二区| 亚洲国产中文字幕| 最新高清无码专区| 亚洲国产精品av| 欧美精品一区二区三区在线播放| 欧美三级韩国三级日本一级| 95精品视频在线| 国产激情精品久久久第一区二区 | 7777精品久久久大香线蕉| 91片在线免费观看| 成人综合在线观看| 久久99精品国产麻豆婷婷| 亚洲高清久久久| 亚洲欧美一区二区三区国产精品| 中文字幕久久午夜不卡| 久久综合给合久久狠狠狠97色69| 91精品国产综合久久久久久久久久 | 久久久久久久性| 日韩欧美在线1卡| 777欧美精品| 欧美日韩激情一区二区| 欧美午夜电影网| 91精彩视频在线| 色婷婷综合久久久中文一区二区 | 亚洲综合网站在线观看| 亚洲精品成a人| 亚洲免费av在线| 亚洲欧美一区二区三区孕妇| 国产精品久久久久久久第一福利| 国产欧美日韩三区| 国产色婷婷亚洲99精品小说| 国产日韩精品一区| 国产视频一区在线播放| 久久女同性恋中文字幕| 国产午夜一区二区三区| 国产夜色精品一区二区av| 久久精品免费在线观看| 欧美—级在线免费片| 国产精品久久久久久久久图文区 | 精品视频一区三区九区| 欧美日韩精品一区二区三区| 欧美日韩日日摸| 欧美日韩视频一区二区| 欧美一区二区三区视频在线观看 | 韩国精品主播一区二区在线观看 | 国产精品天干天干在观线| 中文字幕免费观看一区| 亚洲人成精品久久久久| 亚洲最快最全在线视频| 日韩制服丝袜av| 精品一区二区三区免费视频| 国产福利一区二区三区|