{"id":9175,"date":"2016-05-05T22:23:05","date_gmt":"2016-05-06T02:23:05","guid":{"rendered":"http:\/\/cscircles.cemc.uwaterloo.ca\/?page_id=9175"},"modified":"2017-06-28T15:01:32","modified_gmt":"2017-06-28T19:01:32","slug":"3-zh","status":"publish","type":"page","link":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/3-zh\/","title":{"rendered":"3: \u6ce8\u91ca\u548c\u5f15\u8ff0"},"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>\u8ba1\u7b97\u673a\u7a0b\u5e8f\u5c31\u50cf\u662f\u4e00\u79cd\u4ee3\u7801\u8bed\u8a00\u3002\u8ba1\u7b97\u673a\u9700\u8981\u51c6\u786e\u5730\u8bc6\u522b\u51fa\u8fd9\u4e9b\u4ee3\u7801\u6765\u7406\u89e3\u7f16\u7a0b\u8005\u7684\u6307\u4ee4\u662f\u4ec0\u4e48\u3002\u4f46\u662f\uff0c\u8fd9\u4e9b\u4ee3\u7801\u5bf9\u4e8e\u4eba\u6765\u8bf4\u5f88\u96be\u7406\u89e3\u3002\u6240\u4ee5\u4e3a\u4e86\u5f25\u8865\u8fd9\u4e2a\u7f3a\u9677\uff0c\u4f60\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u5199\u4e00\u4e9b\u7535\u8111\u4f1a\u5ffd\u7565\u7684\u7b14\u8bb0\u3002\u8fd9\u4e9b\u7b14\u8bb0\u53eb\u505a<strong>\u6ce8\u91ca<\/strong>\u3002<\/p>\n<p>\u5728Python\u4e2d\uff0c\u4efb\u4f55\u4e00\u884c\u4ece<code>#<\/code>\u7b26\u53f7(\u4e95\u53f7)\u5f00\u59cb\u7684\u4ee3\u7801\u4ee3\u8868\u6ce8\u91ca\u7684\u5f00\u59cb\u3002\u8fd9\u4e00\u884c\u5728\u4e95\u53f7\u4e4b\u540e\u7684\u5185\u5bb9\u5728\u8fd0\u884c\u7684\u65f6\u5019\u4f1a\u88ab\u8ba1\u7b97\u673a\u5ffd\u7565\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform0\" method=\"POST\">\n<div class='pybox modeNeutral  facultative' id='pybox0'>\n<div class=\"heading\"><span class=\"title\">Example<\/span><\/div>\u6ce8\u91ca\u7684\u5f71\u54cd<div class='pyboxTextwrap pyboxCodewrap RO '  style='height: 84px;'><textarea wrap='off' name='usercode0' id='usercode0'  cols=10 rows=3 readonly='readonly'  style = 'height : 84px;'  class='pyboxCode RO'>\nprint(1) # here is a comment\n# print(2)\nprint(3) # another comment @!#!@$<\/textarea><\/div>\n<div id='pbhistory0' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit0' value=' '\/><\/td>\n<\/tr><\/table><\/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=\"831117c8a987de290929d790628d2919\"\/>\n<div id='pbresults0' class='pbresults'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>document.getElementById(\"submit0\").value = \"Run program\";document.getElementById(\"inputInUse0\").value = \"N\";<\/script>\n<\/p>\n<p>\u56e0\u4e3a\u7b2c\u4e8c\u884c\u662f\u4ee5<code>#<\/code>\u53f7\u8d77\u59cb\u7684\uff0c\u6240\u4ee5Python\u5c06\u8fd9\u4e00\u884c\u5168\u90fd\u5ffd\u7565\u4e86\u3002\u56e0\u6b64<code>2<\/code>\u6ca1\u6709\u6253\u5370\u51fa\u6765\u3002\u5e38\u89c1\u7684\u6ce8\u91ca\u7684\u4f5c\u7528\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u89e3\u91ca\u7a0b\u5e8f\u4e2d\u7684\u4e00\u90e8\u5206\uff0c\u4e3a\u4e86\u4f60\u548c\u4ed6\u4eba\u5728\u4ee5\u540e\u7684\u65f6\u95f4\u91cc\u7406\u89e3\u8fd9\u6bb5\u7a0b\u5e8f\uff1b<\/li>\n<li>\u5f53\u4f60\u5199\u4e00\u4e2a\u6bd4\u8f83\u957f\u7684\u7a0b\u5e8f\u65f6\uff0c \u5199\u4e0b\u201c\u8981\u505a\u4e9b\u4ec0\u4e48\u201d\u7684\u6ce8\u91ca\uff1b<\/li>\n<li>\u6682\u65f6\u4e0d\u8fd0\u884c<em>\uff08\u201c\u6ce8\u91ca\u5316\u201d\uff09<\/em>\u4e00\u884c\u4ee3\u7801\uff0c\u800c\u4e0d\u662f\u5f7b\u5e95\u5220\u6389\uff0c\u8fd9\u6837\u5728\u4ee5\u540e\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u628a\u8fd9\u884c\u4ee3\u7801\u627e\u56de\u6765<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002\u5982\u679c\u4ee3\u7801\u88ab\u6539\u52a8\u5730\u592a\u591a\uff0c\u60f3\u8fd8\u539f\u6210\u6700\u521d\u5730\u4ee3\u7801\uff0c\u90a3\u4e48\u8bf7\u9009\u62e9<strong>\u91cd\u7f6e\u521d\u59cb\u4ee3\u7801<\/strong><\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform1\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox1'>\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'>\u8ba1\u7b97\u79d2\u6570<\/span><\/div>\u8c03\u8bd5\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u4f7f\u5176\u6253\u5370\u51fa\u4e00\u4e2a\u793c\u62dc\u91cc\u6709\u591a\u5c11\u79d2\u3002<a class=\"hintlink\"  id=\"hintlink2\">\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='usercode1' id='usercode1'  cols=10 rows=20   class='pyboxCode RW'>\n# \u76ee\u6807: \u6253\u5370\u51fa\u4e00\u5468\u4e2d\u6709\u591a\u5c11\u79d2 \nsecondsPerMinute = 60\nsecondsPerHour = secondsPerMinute * 50 # \u68c0\u67e5\u8fd9\u91cc\uff01\nsecondsPerDay = secondsPerHour * 24\ndaysPerWeek = 5\n# daysPerWeek = daysPerWeek + 2 #\u5468\u672b\u88ab\u53d6\u6d88\u4e86\u4e48\uff1f\nprint(secondsPerDay * daysPerWeek)\n<\/textarea><\/div>\n<div id='pbhistory1' class='flexcontain' style='display:none;'><\/div>\n<input type='hidden' id='defaultCode1' value='# \\u76ee\\u6807: \\u6253\\u5370\\u51fa\\u4e00\\u5468\\u4e2d\\u6709\\u591a\\u5c11\\u79d2 \\nsecondsPerMinute = 60\\nsecondsPerHour = secondsPerMinute * 50 # \\u68c0\\u67e5\\u8fd9\\u91cc\\uff01\\nsecondsPerDay = secondsPerHour * 24\\ndaysPerWeek = 5\\n# daysPerWeek = daysPerWeek + 2 #\\u5468\\u672b\\u88ab\\u53d6\\u6d88\\u4e86\\u4e48\\uff1f\\nprint(secondsPerDay * daysPerWeek)\\n'><\/input>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit1' value=' '\/><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(1,'3.debug')\" ><\/td>\n<td><input type='button' name='default' value=\"Reset code to default\" onclick=\"pbSetText(1,descape($('#defaultCode1').val()))\" ><\/td>\n<td><input type='button' name='help' value=\"Help\" onclick=\"helpClick(1);\" ><\/td>\n<\/tr><\/table><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse1\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"1\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"989b0e0b46a33c39912bafcba49e8197\"\/>\n<div id='pbresults1' class='pbresults'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>document.getElementById(\"submit1\").value = \"Run program\";document.getElementById(\"inputInUse1\").value = \"N\";<\/script>\n<\/p>\n<h2>\u5b57\u7b26\u4e32<\/h2>\n<p><strong>\u5b57\u7b26\u4e32<\/strong>\u7531\u4e00\u7cfb\u5217\u5b57\u6bcd\u548c\u6570\u5b57\u7ec4\u6210\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u662f\u4fe1\u606f\u5757\u3002\u4e24\u8fb9\u6709\u5f15\u53f7\u4f5c\u4e3a\u4fdd\u62a4\uff1a\u6bd4\u5982\u8bf4\uff0c\u5728<a href=\"\/\">\u7b2c0\u8bfe<\/a>\u7b2c\u4e00\u4e2a\u7a0b\u5e8f\u91cc<code>\"Hello, World!\"<\/code>\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u5982\u679c\u4e95\u53f7<code>#<\/code>\u51fa\u73b0\u5728\u5b57\u7b26\u4e32\u91cc\uff0c\u90a3\u4e48\u5b83\u4e0d\u88ab\u5f53\u505a\u662f\u6ce8\u91ca\u5904\u7406\uff1a<br \/>\n<form class=\"pbform\" action=\"#\" id=\"pbform3\" method=\"POST\">\n<div class='pybox modeNeutral  facultative' id='pybox3'>\n<div class=\"heading\"><span class=\"title\">Example<\/span><\/div>\u4e00\u4e2a\u5305\u542b<code>#<\/code>\u53f7\u5730\u5b57\u7b26\u4e32\u3002<div class='pyboxTextwrap pyboxCodewrap RO '  style='height: 58px;'><textarea wrap='off' name='usercode3' id='usercode3'  cols=10 rows=2 readonly='readonly'  style = 'height : 58px;'  class='pyboxCode RO'>\nmyStr = \"\u7559\u8a00\u8bf7\u6309#\u53f7\u952e\u3002\"\nprint(myStr)<\/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<\/tr><\/table><\/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=\"8e1e2006d77e5eb5496d1a2c0c813b1c\"\/>\n<div id='pbresults3' class='pbresults'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>document.getElementById(\"submit3\").value = \"Run program\";document.getElementById(\"inputInUse3\").value = \"N\";<\/script>\n<\/p>\n<p>\u8fd9\u4e48\u505a\u7684\u539f\u56e0\u662f<code>\"\"<\/code>\u5185\u7684\u4e1c\u897f\u88ab\u8ba1\u7b97\u673a\u8ba4\u4e3a\u662f<em>\u5b57\u7b26\u4e32\u6587\u672c<\/em>\uff0c\u4e5f\u5c31\u662f\u8bf4\u5b83\u53ea\u4f1a\u88ab\u5f53\u6210\u6587\u672c\u800c\u590d\u5236\uff0c\u800c\u4e0d\u4f1a\u88ab\u5f53\u505a\u662f\u6307\u4ee4\u3002\u540c\u6837\u7684\uff0c<code>print(\"3 + 4\")<\/code>\u4e0d\u4f1a\u6253\u5370\u51fa\u6570\u5b577\uff0c\u800c\u53ea\u4f1a\u662f\u5b57\u7b26\u4e32<code>3 + 4<\/code>\u3002<\/p>\n<h2>\u8f6c\u4e49\u5e8f\u5217<\/h2>\n<p>\u5728\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u5f15\u53f7<code>\"<\/code>\u4f1a\u600e\u4e48\u6837\u5462\uff1f\u5982\u679c\u8fd0\u884c<code><\/code><code>print(\"I said \"Wow!\" to him\")<\/code>\uff0c\u5c31\u4f1a<a href=\"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/console\/?consolecode=print%28%22I%20said%20%22Wow%21%22%20to%20him.%22%29\" target=\"_blank\">\u5bfc\u81f4\u9519\u8bef<\/a>\uff1a\u95ee\u9898\u5728\u4e8ePython\u770b\u5230\u4e86\u4e00\u4e2a\u5b57\u7b26\u4e32<code>\"I said \"<\/code>\uff0c\u7d27\u63a5\u7740\u662f\u4e00\u4e2a\u4e0d\u662f\u5b57\u7b26\u4e32\u7684<code>Wow!<\/code>\u3002\u800c\u8fd9\u79cd\u7406\u89e3\u4e0d\u662f\u6211\u4eec\u60f3\u8981\u7684\uff01<\/p>\n<p>Python <em>\u786e\u5b9e<\/em>\u6709\u4e24\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u5728\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u5f15\u53f7\u3002<\/p>\n<ul>\n<li>\u5b57\u7b26\u4e32\u7684\u4e24\u8fb9\u662f\u5355\u5f15\u53f7\uff0c\u6bd4\u5982<code>'blah blah'<\/code>\u3002\u7136\u540e\uff0c\u5728\u4e2d\u95f4\u4f7f\u7528\u53cc\u5f15\u53f7\uff0c\u6bd4\u5982<a href=\"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/console\/?consolecode=print%28%27I%20said%20%22Wow%21%22%20to%20him.%27%29\" target=\"_blank\"><code>'I said \"Wow!\" to him.'<\/code><\/a><\/li>\n<li>\u6dfb\u52a0\u53f3\u5212\u7ebf\u548c\u5f15\u53f7(<code>\\\"<\/code> or <code>\\'<\/code>\u3002\u8fd9\u4e2a\u53eb\u505a <em>\u8f6c\u4e49\u5e8f\u5217<\/em>\uff0cPython\u4f1a\u81ea\u52a8\u5ffd\u7565\u53f3\u5212\u7ebf\uff0c\u53ea\u628a\u5f15\u53f7\u653e\u5230\u5b57\u7b26\u4e32\u91cc\u9762\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002<br \/>\n<form class=\"pbform\" action=\"#\" id=\"pbform4\" method=\"POST\">\n<div class='pybox modeNeutral  facultative' id='pybox4'>\n<div class=\"heading\"><span class=\"title\">Example<\/span><\/div>\u53f3\u5212\u7ebf\u4fdd\u62a4\u7740\u5f15\u53f7\uff0c\u4f46\u662f\u53f3\u5212\u7ebf\u4e0d\u4f1a\u663e\u793a\u3002<div class='pyboxTextwrap pyboxCodewrap RO '  style='height: 58px;'><textarea wrap='off' name='usercode4' id='usercode4'  cols=10 rows=2 readonly='readonly'  style = 'height : 58px;'  class='pyboxCode RO'>\nprint('Here\\'s a single-quote escape')\nprint(\"This is an \\\"escape\\\" of a double-quote\")<\/textarea><\/div>\n<div id='pbhistory4' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit4' value=' '\/><\/td>\n<\/tr><\/table><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse4\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"4\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"8c0193821640f0aa2769f8f21fe76d5d\"\/>\n<div id='pbresults4' class='pbresults'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>document.getElementById(\"submit4\").value = \"Run program\";document.getElementById(\"inputInUse4\").value = \"N\";<\/script>\n<\/li>\n<\/ul>\n<p>\u66f4\u8fdb\u4e00\u6b65\u8bf4\uff0c\u56e0\u4e3a\u8f6c\u4e49\u5e8f\u5217\u7684\u5b58\u5728\uff0c\u53f3\u5212\u7ebf(<code>\\<\/code>)\u662f\u4e00\u4e2a\u7279\u522b\u7684\u5b57\u7b26\u3002\u6240\u4ee5\u4e3a\u4e86\u5728\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u53f3\u5212\u7ebf\uff0c\u4f60\u9700\u8981\u7528\u7b2c\u4e8c\u4e2a\u53f3\u5212\u7ebf\u6765\"\u8f6c\u4e49\"\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u4f60\u9700\u8981\u5728\u5b57\u7b26\u4e32\u4e2d\u6253\u5165<code>\\\\<\/code>\u3002<\/p>\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'>Multiple Choice Exercise: <\/span><span class='title'>\u8f6c\u4e49\u5e8f\u5217<\/span><\/div><div><code>print(\"Backslashes \\\\ and single quotes \\' and double quotes \\\" and pound signs # are awesome!\")<\/code>\u7684\u8f93\u51fa\u503c\u662f\u4ec0\u4e48\uff1f<\/div><label>Your choice: <\/label><select id=\"pyselect5\"><option value=\"d\" selected>Select one<\/option><option value=\"r\">Backslashes \\ and single quotes ' and double quotes \" and pound signs # are awesome!\n<\/option><option value=\"w\"> and pound signs<\/option><option value=\"w\">Backslashes \\\\ and single quotes \\' and double quotes \\\" and pound signs # are awesome!<\/option><option value=\"w\">Causes an error<\/option><\/select><div class='pyboxbuttons'><input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" name=\"slug\" value=\"3.escapemulti\"\/><input type='submit' style='margin:5px;' value='Check answer' onClick='pbMultiCheck(5)'\/><\/div><div class=\"pbresults\" id=\"pyMultiResults5\"><\/div><div class=\"epilogue\">Correct!<\/div><\/div>\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'>\u8f6c\u4e49\u7ec3\u4e60<\/span><\/div>\u7f16\u5199\u7a0b\u5e8f\uff1a<\/p>\n<pre>A double-quote's escaped using a backslash, e.g. \\\"<\/pre>\u6ce8\uff1a\u8fd9\u4e2a\u95ee\u9898\u6709\u591a\u79cd\u89e3\u51b3\u65b9\u6cd5(\u4e00\u8d2f\u5982\u6b64)\uff01\u6bd4\u5982\u8bf4\uff0c\u53ef\u4ee5\u5c06\u6574\u4e2a\u7684\u5b57\u7b26\u4e32\u4e24\u8fb9\u52a0\u4e0a\u5355\u5f15\u53f7\u6216\u53cc\u5f15\u53f7\u3002\u4e0d\u8bba\u54ea\u4e00\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u7528\u5230\u8f6c\u4e49\u3002\u4e3a\u4e86\u8fbe\u5230\u66f4\u597d\u7684\u7ec3\u4e60\uff0c\u5c1d\u8bd5\u7528\u4e24\u79cd\u65b9\u6cd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u4f1a\u6709<a class=\"hintlink\"  id=\"hintlink7\">\u7b2c\u4e09\u79cd\u89e3\u51b3\u65b9\u6cd5\u4e48\uff1f<\/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'>\n<\/textarea><\/div>\n<div id='pbhistory6' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit6' value=' '\/><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(6,'3.escape')\" ><\/td>\n<td><input type='button' name='help' value=\"Help\" onclick=\"helpClick(6);\" ><\/td>\n<\/tr><\/table><\/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=\"631bdea3f7673b01670b20e2b9922a53\"\/>\n<div id='pbresults6' class='pbresults'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>document.getElementById(\"submit6\").value = \"Run program\";document.getElementById(\"inputInUse6\").value = \"N\";<\/script>\n<\/p>\n<p>\u8fd8\u6709\u5176\u4ed6\u7684\u8f6c\u4e49\u5e8f\u5217\uff0c\u6bd4\u5982\"\u6362\u884c\"\uff0c\u4f46\u6211\u4eec\u73b0\u5728\u4e0d\u4f1a\u8ba8\u8bba\u8fd9\u4e2a\u3002\u4f60\u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u4e0b\u4e00\u8bfe\u7684\u5b66\u4e60\u5566\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8ba1\u7b97\u673a\u7a0b\u5e8f\u5c31\u50cf\u662f\u4e00\u79cd\u4ee3\u7801\u8bed\u8a00\u3002\u8ba1\u7b97\u673a\u9700\u8981\u51c6\u786e\u5730\u8bc6\u522b\u51fa\u8fd9\u4e9b\u4ee3\u7801\u6765\u7406\u89e3\u7f16\u7a0b\u8005\u7684\u6307\u4ee4\u662f\u4ec0\u4e48\u3002\u4f46\u662f\uff0c\u8fd9\u4e9b\u4ee3\u7801\u5bf9\u4e8e\u4eba\u6765\u8bf4\u5f88\u96be\u7406\u89e3\u3002\u6240\u4ee5\u4e3a\u4e86\u5f25\u8865\u8fd9\u4e2a\u7f3a\u9677\uff0c\u4f60\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u5199\u4e00\u4e9b\u7535\u8111\u4f1a\u5ffd\u7565\u7684\u7b14\u8bb0\u3002\u8fd9\u4e9b\u7b14\u8bb0\u53eb\u505a\u6ce8\u91ca\u3002 \u5728Python\u4e2d\uff0c\u4efb\u4f55\u4e00\u884c\u4ece#\u7b26\u53f7(\u4e95\u53f7)\u5f00\u59cb\u7684\u4ee3\u7801\u4ee3\u8868\u6ce8\u91ca\u7684\u5f00\u59cb\u3002\u8fd9\u4e00\u884c\u5728\u4e95\u53f7\u4e4b\u540e\u7684\u5185\u5bb9\u5728\u8fd0\u884c\u7684\u65f6\u5019\u4f1a\u88ab\u8ba1\u7b97\u673a\u5ffd\u7565\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002 Example\u6ce8\u91ca\u7684\u5f71\u54cd print(1) # here is a comment # print(2) print(3) # another comment @!#!@$ \u56e0\u4e3a\u7b2c\u4e8c\u884c\u662f\u4ee5#\u53f7\u8d77\u59cb\u7684\uff0c\u6240\u4ee5Python\u5c06\u8fd9\u4e00\u884c\u5168\u90fd\u5ffd\u7565\u4e86\u3002\u56e0\u6b642\u6ca1\u6709\u6253\u5370\u51fa\u6765\u3002\u5e38\u89c1\u7684\u6ce8\u91ca\u7684\u4f5c\u7528\u5305\u62ec\uff1a \u89e3\u91ca\u7a0b\u5e8f\u4e2d\u7684\u4e00\u90e8\u5206\uff0c\u4e3a\u4e86\u4f60\u548c\u4ed6\u4eba\u5728\u4ee5\u540e\u7684\u65f6\u95f4\u91cc\u7406\u89e3\u8fd9\u6bb5\u7a0b\u5e8f\uff1b \u5f53\u4f60\u5199\u4e00\u4e2a\u6bd4\u8f83\u957f\u7684\u7a0b\u5e8f\u65f6\uff0c \u5199\u4e0b\u201c\u8981\u505a\u4e9b\u4ec0\u4e48\u201d\u7684\u6ce8\u91ca\uff1b \u6682\u65f6\u4e0d\u8fd0\u884c\uff08\u201c\u6ce8\u91ca\u5316\u201d\uff09\u4e00\u884c\u4ee3\u7801\uff0c\u800c\u4e0d\u662f\u5f7b\u5e95\u5220\u6389\uff0c\u8fd9\u6837\u5728\u4ee5\u540e\u5c31\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u628a\u8fd9\u884c\u4ee3\u7801\u627e\u56de\u6765 \u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\u3002\u5982\u679c\u4ee3\u7801\u88ab\u6539\u52a8\u5730\u592a\u591a\uff0c\u60f3\u8fd8\u539f\u6210\u6700\u521d\u5730\u4ee3\u7801\uff0c\u90a3\u4e48\u8bf7\u9009\u62e9\u91cd\u7f6e\u521d\u59cb\u4ee3\u7801 Coding Exercise: \u8ba1\u7b97\u79d2\u6570\u8c03\u8bd5\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u4f7f\u5176\u6253\u5370\u51fa\u4e00\u4e2a\u793c\u62dc\u91cc\u6709\u591a\u5c11\u79d2\u3002\u63d0\u793aYou need to create an account and log in to ask a question. # \u76ee\u6807: \u6253\u5370\u51fa\u4e00\u5468\u4e2d\u6709\u591a\u5c11\u79d2 &hellip; <a href=\"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/3-zh\/\">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-9175","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9175","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=9175"}],"version-history":[{"count":8,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9175\/revisions"}],"predecessor-version":[{"id":10205,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9175\/revisions\/10205"}],"wp:attachment":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/media?parent=9175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}