{"id":259,"date":"2019-11-29T02:13:37","date_gmt":"2019-11-28T18:13:37","guid":{"rendered":"https:\/\/jingran.vip\/?p=259"},"modified":"2019-11-29T02:13:38","modified_gmt":"2019-11-28T18:13:38","slug":"%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%85%a5%e9%97%a8%e5%ad%a6%e4%b9%a0python-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%e5%9b%9b%ef%bc%89%e6%98%af%e6%97%b6%e5%80%99%e8%ae%b2%e8%ae%b2%e4%bb%a3","status":"publish","type":"post","link":"https:\/\/jingran.vip\/index.php\/2019\/11\/29\/%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%85%a5%e9%97%a8%e5%ad%a6%e4%b9%a0python-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%e5%9b%9b%ef%bc%89%e6%98%af%e6%97%b6%e5%80%99%e8%ae%b2%e8%ae%b2%e4%bb%a3\/","title":{"rendered":"\u96f6\u57fa\u7840\u5165\u95e8\u5b66\u4e60Python \u2013 \u5b66\u4e60\u7b14\u8bb0\uff08\u56db\uff09\u662f\u65f6\u5019\u8bb2\u8bb2\u4ee3\u7801\u4e86"},"content":{"rendered":"\n<p>\u957f\u5b57\u7b26\u4e32\uff0c\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32<\/p>\n\n\n\n<p>\u8d4b\u503c\u8bed\u53e5 temp = input<\/p>\n\n\n\n<p>\u7f16\u8f91\u6a21\u5f0fvs\u4ea4\u4e92\u6a21\u5f0f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int \u53d6\u6574\ntemp = input(\u201c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff1a\u201d)\nguess = int(guess)<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>\n  &lt;&nbsp;\n  <\/td><td>\n  \u5224\u65ad\u5de6\u8fb9\u662f\u5426\u5c0f\u4e8e\u53f3\u8fb9\n  <\/td><\/tr><tr><td>\n  &lt;=\n  <\/td><td>\n  \u5224\u65ad\u5de6\u8fb9\u662f\u5426\u5c0f\u4e8e\u6216\u7b49\u4e8e\u53f3\u8fb9\n  <\/td><\/tr><tr><td>\n  &gt;&nbsp;\n  <\/td><td>\n  \u5224\u65ad\u5de6\u8fb9\u662f\u5426\u5927\u4e8e\u53f3\u8fb9\n  <\/td><\/tr><tr><td>\n  &gt;=\n  <\/td><td>\n  \u5224\u65ad\u5de6\u8fb9\u662f\u5426\u5927\u4e8e\u6216\u7b49\u4e8e\u53f3\u8fb9\n  <\/td><\/tr><tr><td>\n  ==\n  <\/td><td>\n  \u5224\u65ad\u5de6\u53f3\u4e24\u8fb9\u662f\u5426\u76f8\u7b49\n  <\/td><\/tr><tr><td>\n  !=\n  <\/td><td>\n  \u5224\u65ad\u5de6\u53f3\u4e24\u8fb9\u662f\u5426\u4e0d\u76f8\u7b49\n  <\/td><\/tr><tr><td>\n  Is\n  <\/td><td>\n  \u5224\u65ad\u4e24\u4e2a\u5bf9\u8c61\u7684id\u662f\u5426\u76f8\u7b49\n  <\/td><\/tr><tr><td>\n  Is not\n  <\/td><td>\n  \u5224\u65ad\u4e24\u4e2a\u5bf9\u8c61\u7684id\u662f\u5426\u4e0d\u76f8\u7b49\n  <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>if ...:\nelse ...:<\/code><\/pre>\n\n\n\n<p>\u8fd4\u56de\u503c true\u6216false<\/p>\n\n\n\n<p>\u7f29\u8fdb\u9700\u8981\u4e00\u81f4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u957f\u5b57\u7b26\u4e32\uff0c\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32 \u8d4b\u503c\u8bed\u53e5 temp = input \u7f16\u8f91\u6a21\u5f0fvs\u4ea4\u4e92\u6a21\u5f0f &lt;&#038;nbsp [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,10],"tags":[],"_links":{"self":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/comments?post=259"}],"version-history":[{"count":1,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":260,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/posts\/259\/revisions\/260"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/media\/190"}],"wp:attachment":[{"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/media?parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/categories?post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jingran.vip\/index.php\/wp-json\/wp\/v2\/tags?post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}