亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
中文字幕免费一区| 日韩美女视频在线| 亚洲摸摸操操av| 色综合久久天天综合网| 亚洲人成影院在线观看| 色吧成人激情小说| 午夜精品久久久久久| 91精品国产全国免费观看| 久久国产剧场电影| 中文字幕欧美三区| 欧美日韩在线播放一区| 日本不卡123| 欧美激情一区二区三区在线| 97精品电影院| 日韩av一区二区三区四区| 精品免费国产一区二区三区四区| 风间由美中文字幕在线看视频国产欧美| 国产精品久久久久久久久免费相片| 一本到不卡免费一区二区| 日韩影院免费视频| 国产欧美一区二区三区在线看蜜臀 | 国产日韩亚洲欧美综合| 成人av午夜影院| 婷婷成人综合网| 中文字幕第一区| 欧美精品丝袜中出| 国产成人在线网站| 亚洲第一激情av| 国产精品情趣视频| 91精品中文字幕一区二区三区| 国产福利一区二区三区视频 | 欧美精品一区二区精品网| 国产+成+人+亚洲欧洲自线| 尤物视频一区二区| 国产亚洲午夜高清国产拍精品| 91激情在线视频| 国产高清在线精品| 亚洲.国产.中文慕字在线| 欧美国产日韩在线观看| 91精品国产高清一区二区三区蜜臀| 国产成人免费视频| 日韩精品亚洲一区| 亚洲激情一二三区| 欧美激情在线一区二区三区| 91精品国产91久久综合桃花| 99久久久久久| 国产xxx精品视频大全| 手机精品视频在线观看| 亚洲色图一区二区三区| 久久久久国产一区二区三区四区| 欧美日韩精品免费观看视频| 99久久精品久久久久久清纯| 国产真实乱对白精彩久久| 婷婷久久综合九色综合伊人色| 亚洲视频免费在线| 国产无一区二区| 日韩欧美国产电影| 欧美日韩综合不卡| 91蝌蚪porny九色| 粉嫩高潮美女一区二区三区| 国产一区二区三区免费| 麻豆视频观看网址久久| 午夜精品久久久久久久99水蜜桃| 亚洲欧洲成人精品av97| 欧美国产禁国产网站cc| 久久免费偷拍视频| 精品国产精品网麻豆系列| 911精品产国品一二三产区| 欧美三级日本三级少妇99| 91福利视频网站| 日本道免费精品一区二区三区| 波多野结衣的一区二区三区| 福利电影一区二区| 成人小视频免费在线观看| 国产99久久精品| 成人福利在线看| 成人国产免费视频| 欧美人狂配大交3d怪物一区 | 国产一区二区三区久久久| 日韩av电影一区| 日本中文在线一区| 另类调教123区| 九九精品视频在线看| 狠狠网亚洲精品| 国产成人在线观看免费网站| 国产suv精品一区二区883| av在线不卡观看免费观看| a亚洲天堂av| 91啦中文在线观看| 欧美日本精品一区二区三区| 日韩午夜精品视频| 2022国产精品视频| 国产日韩视频一区二区三区| 国产精品免费视频观看| 亚洲精品免费在线| 天天综合日日夜夜精品| 久久精品久久精品| 国产精品12区| 色菇凉天天综合网| 91精品国产综合久久国产大片| 精品久久久久久久久久久久久久久久久 | 国产酒店精品激情| 成人v精品蜜桃久久一区| 91看片淫黄大片一级在线观看| 91黄色免费网站| 日韩欧美国产一区二区三区| 国产欧美日韩另类一区| 亚洲人快播电影网| 婷婷开心激情综合| 国产电影一区在线| 欧美丝袜丝nylons| 亚洲精品在线三区| 亚洲视频中文字幕| 美洲天堂一区二卡三卡四卡视频| 福利电影一区二区| 欧美日韩一区二区三区在线| 精品成人一区二区三区四区| 亚洲男人的天堂在线aⅴ视频| 日韩精品成人一区二区在线| 成人网页在线观看| 777色狠狠一区二区三区| 中文字幕在线一区二区三区| 日韩中文字幕一区二区三区| 成人免费黄色在线| 欧美一区二区福利视频| 国产精品久久久久久久久免费丝袜 | 884aa四虎影成人精品一区| 日本一区免费视频| 日本成人在线不卡视频| 91免费版pro下载短视频| 精品久久一区二区| 亚洲国产毛片aaaaa无费看 | 日韩精品乱码免费| 成人精品一区二区三区四区| 欧美伦理影视网| 国产精品三级电影| 激情综合五月婷婷| 久久久久久夜精品精品免费| 一区二区三区不卡视频 | 国产精品久久久久一区| 蜜臀精品久久久久久蜜臀| 欧美中文字幕一区| 国产精品午夜在线观看| 国内精品伊人久久久久影院对白| 欧美影院午夜播放| 中文字幕在线不卡一区二区三区| 狠狠色2019综合网| 制服丝袜成人动漫| 亚洲成在人线在线播放| 91在线播放网址| 国产日韩精品视频一区| 精品一区二区免费在线观看| 在线不卡的av| 亚洲高清免费在线| 91麻豆国产自产在线观看| 日本一区二区三区电影| 国产一区二区主播在线| 日韩视频不卡中文| 婷婷丁香激情综合| 欧美日韩视频第一区| 亚洲国产日韩综合久久精品| 91视频国产观看| 最新国产精品久久精品| 成人性视频免费网站| 国产精品全国免费观看高清 | 欧美三级资源在线| 亚洲午夜国产一区99re久久| 91日韩精品一区| 最新中文字幕一区二区三区| 91网站最新地址| 日韩理论片一区二区| 色综合久久99| 亚洲一区二区三区四区五区中文 | 欧美乱妇一区二区三区不卡视频 | 日本成人在线电影网| 日韩午夜在线观看| 国产一区二区女| 中文字幕欧美区| 色诱视频网站一区| 五月天视频一区| 日韩欧美一区在线| 国产一区二区三区四区五区入口| 国产女人aaa级久久久级| 成人av网站在线观看| 一区二区视频免费在线观看| 欧美日韩一级片网站| 日本不卡的三区四区五区| 久久女同性恋中文字幕| 不卡av在线网| 亚洲福利视频导航| 精品欧美一区二区三区精品久久 | 国产精品主播直播| 国产精品午夜在线| 欧美手机在线视频| 国产成人亚洲综合a∨婷婷图片| 国产精品美女一区二区三区 | 91精品国产免费| 国产精品99久久不卡二区| 亚洲私人影院在线观看| 欧美日韩国产精品成人|