{"id":157842,"date":"2020-09-15T12:55:42","date_gmt":"2020-09-15T04:55:42","guid":{"rendered":"http:\/\/4563.org\/?p=157842"},"modified":"2020-09-15T12:55:42","modified_gmt":"2020-09-15T04:55:42","slug":"%e7%9c%9f%e6%98%af%e8%a7%81%e4%b8%8d%e5%be%97%e4%ba%ba%e5%8f%96%e4%b8%aa%e5%8d%83%e4%bd%8d%e4%b8%8b%e6%95%b4%e8%bf%98%e9%9d%9e%e8%a6%81%e7%94%a8-math-%e5%8c%85%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=157842","title":{"rendered":"\u771f\u662f\u89c1\u4e0d\u5f97\u4eba\u53d6\u4e2a\u5343\u4f4d\u4e0b\u6574\u8fd8\u975e\u8981\u7528 math \u5305\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u771f\u662f\u89c1\u4e0d\u5f97\u4eba\u53d6\u4e2a\u5343\u4f4d\u4e0b\u6574\u8fd8\u975e\u8981\u7528 math \u5305\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : p1gd0g <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u65e0\u529b\u5410\u69fd\uff0c\u7a7a\u6c14\u6253\u62f3\u3002go \u8bed\u8a00\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3372787\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangxiaoaer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u60f3\u60f3 node \u4f60\u5c31\u4f1a\u611f\u5230\u5b89\u6170\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chengxiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u600e\u4e48\u89c9\u5f97\u662f\u4e2a\u597d\u4e60\u60ef\u554a?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372789\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : p1gd0g <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chengxiao <br \/>\u5bf9 go \u6709\u4e86\u89e3\u5417\u3002<br \/>math.Floor \u53ea\u63a5\u53d7 float\uff0c\u5982\u679c\u8981\u7528 floor \u9700\u8981\u7c7b\u578b\u8f6c\u6362 float -&gt; \u9664 1000 -&gt; \u53d6\u4e0b\u6574 -&gt; \u4e58 1000 -&gt; \u7c7b\u578b\u8f6c\u6362 int \u3002<br \/>\u4eca\u5929\u53c8\u770b\u4e86\u4e00\u773c\uff0c\u8fd9\u54e5\u4eec\u8fd8\u5199\u7684\u6709\u95ee\u9898\uff0c\u9664 1000 \u7684\u65f6\u5019\u628a\u7cbe\u5ea6\u4e22\u6389\u4e86\u3002\u3002\u3002<br \/>&#8220;`go<br \/>math.Floor(float64(tmpCount \/ base)) \/\/ tmpCount \u548c base \u90fd\u662f int<br \/>&#8220;`<\/p>\n<p>\u660e\u660e\u51cf\u6a21\u5c31\u80fd\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u4f55\u5fc5\u7528\u5947\u6280\u6deb\u5de7\u5462\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372790\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chengxiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @p1gd0g \u4f60\u6807\u9898\u91cc\u5c31\u5199\u4e86\u7528 Math \u5305\uff0c\u6ca1\u5199\u5177\u4f53\u5199\u6cd5\u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372791\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             npm install isFunction                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372792\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dengjscn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @renmu123 \u62c9\u51fa\u53bb\u6253\u6b7b\uff0c\u8fd9\u4e5f\u8981 install                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372793\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fhsan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             python \u8868\u793a\u4e0d\u670d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372794\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fffang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             npm install isInteger                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372795\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : codehz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @p1gd0g #3 \u770b\u4e86\u4e00\u773c\uff0c\u76f4\u63a5 tmpCount \/ base \u5e76\u6ca1\u6709\u4e22\u7cbe\u5ea6\u554a\uff08\u53cd\u6b63\u90fd\u8981\u4e22\u6389\u540e\u9762\u7684\u4f4d\u6570\uff09\uff0c\u9664\u975e\u539f\u6570\u5f88\u5927\u8f6c\u6d6e\u70b9\u6709\u4e22\u5931\uff0c\u6240\u4ee5\u5176\u5b9e\u5148\u7528\u6574\u6570\u9664\u6cd5\u518d\u4e58\u6cd5\u5c31\u597d\u4e86\uff08\u6bd4\u53d6\u6a21\u76f4\u89c2\u70b9\uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372796\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuzhibopro <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u600e\u4e48\u4e86\uff1f\u975e\u5f97\u79c0\u4e00\u628a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372797\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : p1gd0g <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chengxiao \u602a\u6211\u6ca1\u63cf\u8ff0\u6e05\u695a~<br \/>@codehz \u662f\u6211\u7406\u89e3\u9519\u4e86\u3002\u4e0d\u8fc7\u5bf9 int \u7528 floor \u53d6\u4e0b\u6574\u80af\u5b9a\u6709\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3372798\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : p1gd0g <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuzhibopro <br \/>\u6211\u53ea\u60f3\u5410\u69fd\u540c\u4e8b\u5bf9 mathfloor \u7406\u89e3\u4e0d\u5bf9\uff0c\u6ca1\u6709\u79c0\u4e0d\u79c0\u7684\u3002<br \/>\u5927\u5bb6\u90fd\u662f crud boy\uff0c\u5199\u5b8c\u9700\u6c42\u5c31\u4e0d\u9519\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u771f\u662f\u89c1\u4e0d\u5f97\u4eba\u53d6\u4e2a\u5343\u4f4d\u4e0b\u6574\u8fd8\u975e\u8981\u7528 &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\/157842"}],"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=157842"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/157842\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157842"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}