{"id":93647,"date":"2020-04-12T02:19:50","date_gmt":"2020-04-11T18:19:50","guid":{"rendered":"http:\/\/4563.org\/?p=93647"},"modified":"2020-04-12T02:19:50","modified_gmt":"2020-04-11T18:19:50","slug":"%e7%bc%96%e7%a8%8b%e5%b8%a6%e6%9d%a5%e7%9a%84%e6%88%90%e5%b0%b1%e6%84%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93647","title":{"rendered":"\u7f16\u7a0b\u5e26\u6765\u7684\u6210\u5c31\u611f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7f16\u7a0b\u5e26\u6765\u7684\u6210\u5c31\u611f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jeblur <\/span>  <span><i><\/i> 17<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5e0c\u671b\u591a\u5b66\u4e00\u95e8\u6280\u80fd\uff0c\u6240\u4ee5\u6700\u8fd1\u4e00\u76f4\u5728\u5b66\u4e60 python\uff0c\u5728\u770b\u300a Python Crash Course \u300b\uff0c\u5176\u4e2d\u4f5c\u8005\u5728\u6700\u5f00\u5934\u63d0\u5230\u7684<\/p>\n<p>\u201c There is real satisfaction in building something with a purpose, something that solves a problem. \u201d<\/p>\n<p>\u4eca\u5929\u6211\u7b97\u662f\u4f53\u4f1a\u5230\u4e86\uff0c\u8d77\u56e0\u662f\u770b\u5230\u4e00\u4e2a\u4eba\u5728\u670b\u53cb\u5708\u6652\u4fdd\u9669\uff08\u5e74\u5e74\u62ff\u94b1\u7684\u90a3\u79cd\uff0c\u53ef\u4ee5\u62ff\u5230 105 \u5c81[\u6211\u60ca\u5446\u4e86]\uff09\uff0c<\/p>\n<p>\u4e8e\u662f\u840c\u751f\u7528 python \u6765\u770b\u8981\u662f\u4e70 10w \u5230\u5e95\u6700\u540e\u80fd\u62ff\u5230\u591a\u5c11\u94b1\uff0c<\/p>\n<p>\u4e8e\u662f\u6709\u4e86\u4e0b\u9762\u8fd9\u51e0\u884c\u4ee3\u7801\uff0c\u867d\u7136\u5f88\u7b80\u5355[\u5927\u4f6c\u8bf7\u5ffd\u7565]<\/p>\n<p>\u53ef\u662f\u8fd9\u4e2a\u5c0f\u4e1c\u897f\u5e26\u6765\u7684\u6210\u5c31\u611f\u53ef\u80fd\u4f1a\u662f\u6211\u4ee5\u540e\u4eba\u751f\u6240\u60f3\u8981\u8ffd\u6c42\u7684<\/p>\n<pre><code># Define your initial saving amount saving_amount  = 100000 # Define the saving rate of your bank saving_rate = 0.04 # Assign an initial value 0 for the following loop year = 0 # Assign a default True value for the following loop flag = True  while flag: # Start a loop before a False value is associated to flag     if year &lt; 100:         saving_amount = saving_amount*(1+saving_rate)         year += 1         flag = True     else:         print(f\"You have {saving_amount} in your account.\")         flag = False <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1159611\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shpkng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u662f\u4e0d\u4f1a\u5199 for \u5faa\u73af\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159612\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : raymanr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4f60\u77e5\u9053\u4e00\u70b9\u70b9\u6570\u5b66\u77e5\u8bc6\u4f60\u4f1a\u53d1\u73b0<\/p>\n<p>100000 * ((1+0.04) ** 100) \u8db3\u77e3\u3002\u3002\u3002\u8ba1\u7b97\u5668\u90fd\u53ef\u4ee5\u6309\u51fa\u6765\uff0c\u7528\u4e0d\u7740 Python                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159613\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fe2coder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shpkng \u4e3b\u4e0d\u8981\u9762\u5b50\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159614\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jeblur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shpkng \u53ea\u4f1a for \u5217\u8868\uff0c\u5927\u4f6c\u8bf7\u5ffd\u7565\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159615\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jeblur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @raymanr \u4e0d\u8981\u6253\u51fb\u6211\u7684\u79ef\u6781\u6027                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159616\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : raymanr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jeblur <br \/>\u52a0\u6cb9\uff0c\u5176\u5b9e\u6211\u610f\u601d\u662f\u4e0d\u8981\u592a\u8fc7\u4e8e\u5728\u610f\u8bed\u8a00\u548c\u7f16\u7a0b\u672c\u8eab<\/p>\n<p>\u591a\u5b66\u4e60\u4e00\u4e0b\u89e3\u9898\u601d\u60f3\uff0c\u4e0d\u8981\u592a\u5728\u610f\u8bed\u8a00\uff0c\u9690\u85cf\u5728\u8bed\u8a00\u80cc\u540e\u7684\u601d\u60f3\u6bd4\u8bed\u8a00\u624d\u662f\u5176\u672c\u8d28                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159617\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : finely <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u4eab\u53d7\u7684\u4e0d\u662f\u89e3\u51b3\u95ee\u9898\uff0c\u800c\u662f\u9020\u8f6e\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159618\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u8fd1\u4e00\u5468\u7b2c\u4e09\u6b21\u770b\u5230 Python Crash Course &#8230;.. \u6211\u67e5\u67e5\u8fd9\u5230\u5e95\u662f\u4e2a\u5565&#8230;.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159619\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jeblur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @raymanr \u53d7\u6559\u4e86\uff0c\u611f\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159620\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Counter <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728 v2 \u770b\u5230\u7684\u5bf9\u65b0\u4eba\u7684\u6001\u5ea6\u57fa\u672c\u90fd\u662f\u51b7\u5632\u70ed\u8bbd\uff0c\u4e0d\u77e5\u9053\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u79c0\u4f18\u8d8a\u611f\u5185\u5fc3\u662f\u6709\u591a\u9634\u6697                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159621\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : grzhan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ee5\u524d\u770b\u5230\u8fc7\u4e00\u4e2a\u6211\u5f88\u8ba4\u540c\u7684\u8bf4\u6cd5\uff0c\u7f16\u7a0b\u5c31\u662f\u5f53\u4ee3\u4e16\u754c\u7684\u201c\u9b54\u6cd5\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159622\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : grzhan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ee5\u524d\u770b\u5230\u8fc7\u4e00\u4e2a\u6211\u5f88\u8ba4\u540c\u7684\u8bf4\u6cd5\uff0c\u7f16\u7a0b\u5c31\u662f\u5f53\u4ee3\u4e16\u754c\u7684\u201c\u9b54\u6cd5\u201d\uff0c\u800c\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u5219\u662f\u5f53\u4ee3\u4e16\u754c\u7684\u201c\u7537\u5deb\u201d<br \/>\u65e0\u8bba\u662f\u6700\u7b80\u5355\u7684\u81ea\u52a8\u5316\u811a\u672c\uff0c\u8fd8\u662f\u529f\u80fd\u4e30\u5bcc\u7684\u4ea7\u54c1\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee3\u7801\u501f\u52a9\u7535\u5b50\u8ba1\u7b97\u673a\u7684\u7b97\u529b\u3001\u7f51\u7edc\u57fa\u7840\u8bbe\u65bd\u7b49\u8d44\u6e90\uff0c\u6765\u6539\u5584\u81ea\u5df1\u4ee5\u53ca\u8eab\u8fb9\u4eba\u7684\u751f\u6d3b\u3002<br \/>\u5e0c\u671b\u4f60\u80fd\u7ee7\u7eed\u4ece\u4e2d\u83b7\u5f97\u5230\u6210\u5c31\u611f\uff0c\u540c\u65f6\u5e2e\u52a9\u81ea\u5df1\u548c\u81ea\u5df1\u8eab\u8fb9\u7684\u4eba\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159623\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Devin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7136\u800c\u5728\u8fd9\u91cc\uff0c\u5927\u591a\u6570\u4eba\u53ea\u4e0d\u8fc7\u662f\u770b\u8fd9\u884c\u4e1a\u9ad8\u85aa\u7528\u5b83\u6765\u7cca\u53e3\u996d\u5403<br \/>\u6210\u5c31\u611f \/\u9b54\u6cd5\u611f\u624d\u662f\u6211\u5f53\u521d\u5b66\u7f16\u7a0b\u7684\u521d\u8877                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159624\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RHxW <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @grzhan <br \/>\u55ef\uff1f\u201c\u7537\u5deb\u201d\uff1f<br \/>\u4f60\u6562\u5047\u5b9a\u6027\u522b\uff1f<br \/>\u5927\u70ed\u5929\u7684\u6d51\u8eab\u53d1\u6296\uff0c\u540e\u9762\u6211\u5fd8\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159625\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhaishunqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8865\u9f50\u4f60\u7684\u6807\u9898:\u65e9\u5df2\u8361\u7136\u65e0\u5b58                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1159626\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : grzhan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @RHxW \u6211\u56de\u590d\u53d1\u51fa\u6765\u786e\u5b9e\u4e5f\u53d1\u73b0\u4e0d\u5bf9\u52b2\u4e86\uff08<br \/>\u4e0d\u8fc7\u539f\u6587\u786e\u5b9e\u4e5f\u662f \u201cWizard\u201d\uff0c\u53ef\u80fd\u8bf4\u662f\u5deb\u5e08\u5c31\u66f4\u4e2d\u6027\u4e00\u70b9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7f16\u7a0b\u5e26\u6765\u7684\u6210\u5c31\u611f \u8cc7\u6df1\u5927\u4f6c : j&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93647"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93647"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93647\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93647"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}