{"id":9309,"date":"2016-06-07T23:30:23","date_gmt":"2016-06-08T03:30:23","guid":{"rendered":"http:\/\/cscircles.cemc.uwaterloo.ca\/?page_id=9309"},"modified":"2017-06-29T14:08:34","modified_gmt":"2017-06-29T18:08:34","slug":"zh-8","status":"publish","type":"page","link":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/zh-8\/","title":{"rendered":"8: \u6df7\u5408"},"content":{"rendered":"<!-- Please retain this notice and add more notes if you create a new version.<br \/>\nOriginal lesson author: David Pritchard, daveagp@gmail.com, http:\/\/cscircles.ca<br \/>\nLicense: http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/-->\n<p>\u8fd9\u8282\u8bfe\u7531\u51e0\u4e2a\u7ec3\u4e60\u7ec4\u6210\u3002\u8fd9\u4e9b\u7ec3\u4e60\u7ed3\u5408\u4e86\u4f60\u5728\u4e4b\u524d\u7684\u8bfe\u7a0b\u4e2d\u5b66\u5230\u7684\u4e0d\u540c\u7684\u6280\u80fd\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform0\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox0'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>Python\u52a0\u6cd5\u8ba1\u7b97\u5668<\/span><\/div>\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8f93\u5165\u4e3a\u4ee5<code>\u00abnumber1\u00bb+\u00abnumber2\u00bb<\/code>\u4e3a\u683c\u5f0f\u7684\u4e00\u884c\uff0c\u4e24\u4e2a\u6570\u5b57\u90fd\u662f\u4ee3\u8868\u6b63\u6574\u6570\uff0c\u8f93\u51fa\u4e24\u4e2a\u6570\u7684\u548c\u3002\u6bd4\u5982\uff0c\u8f93\u5165\u662f<code>5+12<\/code>\uff0c\u90a3\u4e48\u8f93\u51fa\u5c31\u5e94\u8be5\u662f<code>17<\/code>\u3002<a class=\"hintlink\"  id=\"hintlink1\">\u63d0\u793a 1<\/a><a class=\"hintlink\"  id=\"hintlink2\">\u63d0\u793a 2<\/a><div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode0' id='usercode0'  cols=10 rows=20   class='pyboxCode RW'>\nS = input()\n<\/textarea><\/div>\n<div id='pbhistory0' class='flexcontain' style='display:none;'><\/div>\n<input type='hidden' id='defaultCode0' value='S = input()\\n'><\/input>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit0' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(0)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(0,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(0,'8.adder')\" ><\/td>\n<\/tr><\/table><select id='pbSelect0' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='default' data-pbonclick=\"pbSetText(0,descape($('#defaultCode0').val()))\" >Reset code to default<\/option>\n<option name='help' data-pbonclick=\"helpClick(0);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse0\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"0\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"18e7ceebb7831bd5cb23bc5c96a41dca\"\/>\n<div id='pbresults0' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(0);});document.getElementById(\"submit0\").value = \"Run program\";document.getElementById(\"inputInUse0\").value = \"N\";<\/script>\n<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform3\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox3'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u6570\u5b50\u94fe<\/span><\/div>\u57287A\u91cc\u9762\u63d0\u5230\u8fc7\uff0c\u4e00\u4e2a\u5b50\u94fe\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u8fde\u7eed\u7684\u5b57\u7b26\u3002\u5728\u4e00\u4e2a\u5b57\u7b26\u4e32\u91cc\u9762\u53ef\u80fd\u4f1a\u6709\u591a\u4e2a\u76f8\u540c\u7684\u5b50\u94fe\uff1a\u6bd4\u5982\"assesses\"\u4e2d\"sses\"\u51fa\u73b0\u4e862 \u6b21\uff0c\"trans-Panamanian\u00a0banana\"\u4e2d\"an\"\u51fa\u73b0\u4e866\u6b21\u3002\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8f93\u5165\u4e24\u884c\uff0c\u7b2c\u4e00\u884c\u540d\u4e3a<code>needle<\/code>\uff0c\u7b2c\u4e8c\u884c\u540d\u4e3a<code>haystack<\/code>\u3002\u6253\u5370\u51fa<code>needle<\/code>\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u4f5c\u4e3a<code>haystack<\/code>\u7684\u5b50\u94fe\u3002<a class=\"hintlink\"  id=\"hintlink4\">\u63d0\u793a<\/a><div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode3' id='usercode3'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory3' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit3' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(3)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(3,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(3,'8.substrings')\" ><\/td>\n<\/tr><\/table><select id='pbSelect3' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(3);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse3\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"3\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"40605361e14bbe7eb478848a0f0f0384\"\/>\n<div id='pbresults3' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(3);});document.getElementById(\"submit3\").value = \"Run program\";document.getElementById(\"inputInUse3\").value = \"N\";<\/script>\n<\/p>\n<p>\u5728\u4e0b\u9762\u7684\u95ee\u9898\u4e2d\uff0c\u4e00\u65e6\u4f60\u505a\u5bf9\u4e86\uff0c\u6211\u4eec\u4f1a\u901a\u8fc7\u4f7f\u7528<code>*<\/code>\u4ee5\u56fe\u8868\u7684\u5f62\u5f0f\u5c55\u793a\u51fa\u8f93\u51fa\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform5\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox5'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u89c2\u5bdf\u949f\u6446<\/span><\/div>\u5728\u7269\u7406\u5b66\u4e2d\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u957f\u4e3aL\uff0c\u8d77\u59cb\u89d2\u5ea6\u4e3aA\u7684\u949f\u6446\u6765\u8bf4\uff0c\u5728T\u65f6\u523b\u7684\u6c34\u5e73\u504f\u79bbX(T)\u4e3a<\/p>\n<p style=\"text-align: center;\">X(T) = L \u00d7\u00a0cos(A \u00d7 cos(T \u00d7\u00a0\u221a<span style=\"text-decoration: overline;\">9.8\/L<\/span>)) - L \u00d7 cos(A)<\/p>\n<p>\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u9700\u8981\u4e24\u884c\u8f93\u5165\uff1b\u7b2c\u4e00\u884c\u662fL\uff0c\u7b2c\u4e8c\u884c\u662fA\u3002\u8f93\u51faX(0), X(1), X(2), ..., X(9)\u7684\u7ed3\u679c\uff0c\u6bcf\u884c\u4e00\u4e2a\u3002\u6bd4\u5982\uff0c\u5982\u679c\u7b2c\u4e00\u884c\u7684\u8f93\u5165\u662f<code>53.1<\/code>\uff0c\u7b2c\u4e8c\u884c\u7684\u8f93\u5165\u662f<code>0.8<\/code>\uff0c\u90a3\u4e48\u7b2c\u4e00\u884c\u8f93\u51fa\u662f<code>0.0<\/code>\uff0c\u7b2c\u4e8c\u884c\u8f93\u51fa\u662f53.1*cos(0.8*cos(1*\u221a<span style=\"text-decoration: overline;\">9.8\/53.1<\/span>)) - 53.1*cos(0.8) ~ <code>2.6689<\/code>\u3002<div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode5' id='usercode5'  cols=10 rows=20   class='pyboxCode RW'>\n# import\u8bed\u53e5\u653e\u5728\u6b64\u5904\nL = float(input())\nA = float(input())\n<\/textarea><\/div>\n<div id='pbhistory5' class='flexcontain' style='display:none;'><\/div>\n<input type='hidden' id='defaultCode5' value='# import\\u8bed\\u53e5\\u653e\\u5728\\u6b64\\u5904\\nL = float(input())\\nA = float(input())\\n'><\/input>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit5' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(5)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(5,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(5,'8.pendulum')\" ><\/td>\n<\/tr><\/table><select id='pbSelect5' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='default' data-pbonclick=\"pbSetText(5,descape($('#defaultCode5').val()))\" >Reset code to default<\/option>\n<option name='help' data-pbonclick=\"helpClick(5);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse5\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"5\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"f53e500cab962593c22e75f1b2137771\"\/>\n<div id='pbresults5' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(5);});document.getElementById(\"submit5\").value = \"Run program\";document.getElementById(\"inputInUse5\").value = \"N\";<\/script>\n<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform6\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox6'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u5c45\u4e2d\u6587\u5b57<\/span><\/div>\u5bf9\u4e8e\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u7b2c\u4e00\u884c\u8f93\u5165\u662f\u4e00\u4e2a\u6574\u6570<code>width<\/code>\u3002\u63a5\u7740\u662f\u4e00\u4e9b\u6587\u672c\uff1b\u6709<code>\"END\"<\/code>\u7684\u4e00\u884c\u8868\u660e\u6587\u672c\u7684\u7ed3\u675f\u3002\u5bf9\u4e8e\u6bcf\u4e00\u884c\u6587\u672c\uff0c\u4f60\u9700\u8981\u6253\u5370\u51fa<em>\u5c45\u4e2d<\/em>\u683c\u5f0f\uff0c\u901a\u8fc7\u5728\u5176\u5de6\u4fa7\u548c\u53f3\u4fa7\u6dfb\u52a0<code>..<\/code>\uff0c\u4f7f\u5f97\u6bcf\u4e00\u884c\u6587\u672c\u7684\u603b\u957f\u5ea6\u662f<code>width<\/code>\u3002\uff08\u6240\u6709\u8f93\u5165\u884c\u7684\u957f\u5ea6\u4e0d\u8d85\u8fc7<code>width<\/code>\uff09\u3002\u5c45\u4e2d\u610f\u5473\u7740\u5de6\u8fb9\u548c\u53f3\u8fb9\u7684\u70b9\u6570\u5e94\u8be5\u4e00\u81f4\uff08\u5982\u679c\u53ef\u80fd\u7684\u8bdd\uff09\uff1b\u5982\u679c\u5fc5\u8981\uff0c\u5141\u8bb8\u5de6\u8fb9\u6bd4\u53f3\u8fb9\u591a\u4e00\u4e2a\u70b9\u3002\u6bd4\u5982\u8bf4\uff0c\u5bf9\u4e8e\u8f93\u5165<\/p>\n<pre>13\r\nText\r\nin\r\nthe\r\nmiddle!\r\nEND<\/pre>\u6b63\u786e\u7684\u8f93\u51fa\u5c31\u5e94\u8be5\u662f<\/p>\n<pre>.....Text....\r\n......in.....\r\n.....the.....\r\n...middle!...<\/pre><a class=\"hintlink\"  id=\"hintlink7\">\u63d0\u793a<\/a><div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode6' id='usercode6'  cols=10 rows=20   class='pyboxCode RW'>\nwidth = int(input())\n<\/textarea><\/div>\n<div id='pbhistory6' class='flexcontain' style='display:none;'><\/div>\n<input type='hidden' id='defaultCode6' value='width = int(input())\\n'><\/input>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit6' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(6)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(6,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(6,'8.centering')\" ><\/td>\n<\/tr><\/table><select id='pbSelect6' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='default' data-pbonclick=\"pbSetText(6,descape($('#defaultCode6').val()))\" >Reset code to default<\/option>\n<option name='help' data-pbonclick=\"helpClick(6);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse6\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"6\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"ad73ec567ab843b1db00b61cc4b74100\"\/>\n<div id='pbresults6' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(6);});document.getElementById(\"submit6\").value = \"Run program\";document.getElementById(\"inputInUse6\").value = \"N\";<\/script>\n<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform8\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox8'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u7ed3\u675f\u65f6\u95f4<\/span><\/div>\u8fd9\u4e2a\u7a0b\u5e8f\u9700\u8981\u4e24\u884c\u8f93\u5165\u3002\u7b2c\u4e00\u884c\u662f\"\u8d77\u59cb\u65f6\u95f4\"\uff0c\u662f\u4ee524\u5c0f\u65f6\u5236\u8868\u793a\u7684\uff0c\u4f8b\u5982<code>08:30<\/code>\u6216<code>14:07<\/code>\u3002\u7b2c\u4e8c\u884c\u662f\u65f6\u957fD\uff0c\u4ee5\u5206\u949f\u8ba1\u3002\u4ee5\u8d77\u59cb\u65f6\u95f4\u7b97\u8d77\uff0c\u6253\u5370\u51faD\u5206\u949f\u540e\u7684\u65f6\u95f4\u3002\u6bd4\u5982\uff0c\u5982\u679c\u8f93\u5165\u662f<\/p>\n<pre>12:30\r\n47<\/pre>\u90a3\u4e48\u6b63\u786e\u7684\u8f93\u51fa\u5c31\u5e94\u8be5\u662f<code>13:17<\/code>\u3002\u6240\u6709\u7684\u65f6\u95f4\u90fd\u5e94\u8be5\u572800:00\u548c23:59\u4e4b\u95f4\uff0c\u4f46\u662f\u65f6\u95f4\u53ef\u80fd\u7ecf\u8fc7\u96f6\u70b9\u3002\u6bd4\u5982\uff0c\u5982\u679c\u8f93\u5165\u662f<\/p>\n<pre>23:59\r\n13<\/pre>\u90a3\u4e48\u6b63\u786e\u7684\u8f93\u51fa\u5c31\u5e94\u8be5\u662f<code>00:12<\/code>\u3002\u63d0\u793a\uff1a<a class=\"hintlink\"  id=\"hintlink9\">#1<\/a> <a class=\"hintlink\"  id=\"hintlink10\">#2<\/a><div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode8' id='usercode8'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory8' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit8' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(8)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(8,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(8,'8.ending')\" ><\/td>\n<\/tr><\/table><select id='pbSelect8' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(8);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse8\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"8\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"e070d9dcc9c82bb5f2f9e1d9e6e1b187\"\/>\n<div id='pbresults8' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(8);});document.getElementById(\"submit8\").value = \"Run program\";document.getElementById(\"inputInUse8\").value = \"N\";<\/script>\n<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform11\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox11'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u5b57\u7b26\u6620\u5c04\u8868<\/span><\/div>\u51e0\u8282\u8bfe\u524d\u6211\u4eec\u63d0\u5230\u4e86\u4ee5\u4e0b\u7684\u56fe\uff1a<\/p>\n<pre>chr:      !   \"   #   $   %   &amp;   '   (   )   *   +   ,   -   .   \/ \nasc: 32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47 \nchr:  0   1   2   3   4   5   6   7   8   9   :   ;   &lt;   =   &gt;   ? \nasc: 48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63 \nchr:  @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O \nasc: 64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79 \nchr:  P   Q   R   S   T   U   V   W   X   Y   Z   [   \\   ]   ^   _ \nasc: 80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95 \nchr:  `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o \nasc: 96  97  98  99  100 101 102 103 104 105 106 107 108 109 110 111\nchr:  p   q   r   s   t   u   v   w   x   y   z   {   |   }   ~     \nasc: 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 <\/pre>\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u6253\u5370\u51fa\u8fd9\u4e2a\u8868\u683c\u3002\uff08\u6253\u5206\u673a\u5668\u4f1a\u5ffd\u7565\u6bcf\u4e00\u884c\u6700\u540e\u7684\u7a7a\u683c\uff09\u3002<div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode11' id='usercode11'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory11' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit11' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(11)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(11,'N')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(11,'8.charmap')\" ><\/td>\n<\/tr><\/table><select id='pbSelect11' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(11);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse11\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"11\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"5325f37b830f4317e16b62e2d190c341\"\/>\n<div id='pbresults11' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(11);});document.getElementById(\"submit11\").value = \"Run program\";document.getElementById(\"inputInUse11\").value = \"N\";<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u8282\u8bfe\u7531\u51e0\u4e2a\u7ec3\u4e60\u7ec4\u6210\u3002\u8fd9\u4e9b\u7ec3\u4e60\u7ed3\u5408\u4e86\u4f60\u5728\u4e4b\u524d\u7684\u8bfe\u7a0b\u4e2d\u5b66\u5230\u7684\u4e0d\u540c\u7684\u6280\u80fd\u3002 Coding Exercise: Python\u52a0\u6cd5\u8ba1\u7b97\u5668\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8f93\u5165\u4e3a\u4ee5\u00abnumber1\u00bb+\u00abnumber2\u00bb\u4e3a\u683c\u5f0f\u7684\u4e00\u884c\uff0c\u4e24\u4e2a\u6570\u5b57\u90fd\u662f\u4ee3\u8868\u6b63\u6574\u6570\uff0c\u8f93\u51fa\u4e24\u4e2a\u6570\u7684\u548c\u3002\u6bd4\u5982\uff0c\u8f93\u5165\u662f5+12\uff0c\u90a3\u4e48\u8f93\u51fa\u5c31\u5e94\u8be5\u662f17\u3002\u63d0\u793a 1\u63d0\u793a 2You need to create an account and log in to ask a question. S = input() More actions... Reset code to default Help Coding Exercise: \u6570\u5b50\u94fe\u57287A\u91cc\u9762\u63d0\u5230\u8fc7\uff0c\u4e00\u4e2a\u5b50\u94fe\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u8fde\u7eed\u7684\u5b57\u7b26\u3002\u5728\u4e00\u4e2a\u5b57\u7b26\u4e32\u91cc\u9762\u53ef\u80fd\u4f1a\u6709\u591a\u4e2a\u76f8\u540c\u7684\u5b50\u94fe\uff1a\u6bd4\u5982\"assesses\"\u4e2d\"sses\"\u51fa\u73b0\u4e862 \u6b21\uff0c\"trans-Panamanian\u00a0banana\"\u4e2d\"an\"\u51fa\u73b0\u4e866\u6b21\u3002\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8f93\u5165\u4e24\u884c\uff0c\u7b2c\u4e00\u884c\u540d\u4e3aneedle\uff0c\u7b2c\u4e8c\u884c\u540d\u4e3ahaystack\u3002\u6253\u5370\u51faneedle\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u4f5c\u4e3ahaystack\u7684\u5b50\u94fe\u3002\u63d0\u793aYou need to create an account and log in &hellip; <a href=\"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/zh-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9309","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/comments?post=9309"}],"version-history":[{"count":15,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9309\/revisions"}],"predecessor-version":[{"id":10258,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9309\/revisions\/10258"}],"wp:attachment":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/media?parent=9309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}