{"id":51260,"date":"2023-07-19T07:46:22","date_gmt":"2023-07-18T23:46:22","guid":{"rendered":"http:\/\/stmu.1000uc.com\/mu\/?p=51260"},"modified":"2023-07-19T07:46:22","modified_gmt":"2023-07-18T23:46:22","slug":"%e5%a5%87%e8%bf%b9mu%e5%b9%b8%e8%bf%90%e7%ac%a6%e5%92%92%e7%9a%84%e4%bd%9c%e7%94%a8kmu%e6%98%af%e4%bb%80%e4%b9%88%e5%8d%95%e4%bd%8d","status":"publish","type":"post","link":"http:\/\/stmu.1000uc.com\/mu\/51260.html","title":{"rendered":"mu\u5e78\u8fd0\u7b26\u5492\u7684\u4f5c\u7528(kmu\u662f\u4ec0\u4e48\u5355\u4f4d)"},"content":{"rendered":"<p>\u5927\u5bb6\u597d,\u4eca\u5929\u5c0f\u7f16\u6765\u4e3a\u5927\u5bb6\u89e3\u7b54\u4ee5\u4e0b\u7684\u95ee\u9898\uff0c\u5173\u4e8e\u5947\u8ff9mu\u5e78\u8fd0\u7b26\u5492\u7684\u4f5c\u7528\uff0ckmu\u662f\u4ec0\u4e48\u5355\u4f4d\u8fd9\u4e2a\u5f88\u591a\u4eba\u8fd8\u4e0d\u77e5\u9053\uff0c\u73b0\u5728\u8ba9\u6211\u4eec\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n<h3>kmu\u662f\u4ec0\u4e48\u5355\u4f4d<\/h3>\n<p>ku\u662f\u9176\u7684\u6d3b\u529b\u5355\u4f4d\uff0cu\u548cU\u662f\u4e00\u6837\u7684\uff0c1ku\u76f8\u5f53\u4e8e0.3\u56fd\u9645\u5355\u4f4dIU\u3002\u4e0d\u80fd\u6362\u6210mg\uff0c\u56e0\u4e3a\u9176\u7684\u5355\u4f4d\u548c\u8d28\u91cf\u4e0d\u6210\u4e25\u683c\u7684\u6b63\u6bd4\u4f8b\u3002\u6240\u4ee5\u662f\u9700\u8981\u6d4b\u8bd5\u7684\uff0c\u4e0d\u540c\u5382\u5bb6\u751f\u4ea7\u7684\u9176\u6d3b\u529b\u4e0d\u540c\uff0c\u662f\u6309\u7167\u50ac\u5316\u6d3b\u529b\u6d4b\u5b9a\u7684\u3002<\/p>\n<p>\u5728\u6cd5\u5b9a\u8ba1\u91cf\u4e2d,\u6709\u4e24\u4e2a\u4e0d\u540c\u610f\u4e49\u7684u\u3002\u4e00\u4e2a\u201cu\u201d\u662f\u53ef\u4e0eSI\u5355\u4f4d\u5e76\u7528\u7684\u6211\u56fd\u6cd5\u5b9a\u8ba1\u91cf\u5355\u4f4d\uff1b\u5176\u4e0eSI\u5355\u4f4d\u7684\u5173\u7cfb\u4e3a1u\u22481.660540\u00d710-27kg\u3002\u5176\u91cf\u540d\u79f0\u4e3a\u8d28\u91cf;\u5355\u4f4d\u540d\u79f0\u4e3a\u201c\u539f\u5b50\u8d28\u91cf\u5355\u4f4d\u201d\u3002<\/p>\n<p>\u56e0\u800c\u5176\u91cf\u7b26\u53f7\u5e94\u4e3am\u3002\u4f8b\u5982\u67d0\u7269\u8d28X\u7684\u8d28\u91cf\u4e3a5ku,\u53ef\u5199\u4e3am(X)=5ku\u3002\u53e6\u4e00\u4e2au\u662fSI\u91cf\u201c\u539f\u5b50\u8d28\u91cf\u5e38\u91cf\u201d(\u201cmu\u201d)\u7684\u5355\u4f4d\u7b26\u3002\u539f\u5b50\u8d28\u91cf\u5355\u4f4d\u5e38\u91cf(\u91cf\u7b26\u53f7\u4e3amu)\u7684\u5b9a\u4e49\u4e3a:\u201c\u4e00\u4e2a12C\u4e2d\u6027\u539f\u5b50\u5904\u4e8e\u57fa\u6001\u7684\u9759\u6b62\u8d28\u91cf\u76841\/12\u201d;u\u7684\u540d\u79f0\u4e5f\u4e3a\u201c\u539f\u5b50\u8d28\u91cf\u5355\u4f4d\u201d\u3002<\/p>\n<h3>random\u5e93\u7684\u4f7f\u7528\u4f8b\u9898<\/h3>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528Python\u7684random\u5e93\u751f\u6210\u968f\u673a\u6570\u7684\u4f8b\u5b50\uff1a<\/p>\n<p>python<\/p>\n<p>\u590d\u5236<\/p>\n<p>importrandom<\/p>\n<p>#\u751f\u6210\u4e00\u4e2a0\u52301\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570<\/p>\n<p>num1=random.random()<\/p>\n<p>print(num1)<\/p>\n<p>#\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6574\u6570<\/p>\n<p>num2=random.randint(1,10)<\/p>\n<p>print(num2)<\/p>\n<p>#\u4ece\u7ed9\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20<\/p>\n<p>choice1=random.choice([&#39;apple&#39;,&#39;banana&#39;,&#39;orange&#39;])<\/p>\n<p>print(choice1)<\/p>\n<p>#\u4ece\u7ed9\u5b9a\u7684\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u591a\u4e2a\u5143\u7d20<\/p>\n<p>choices2=random.sample([&#39;apple&#39;,&#39;banana&#39;,&#39;orange&#39;],2)<\/p>\n<p>print(choices2)<\/p>\n<p>#\u751f\u6210\u4e00\u4e2a\u7b26\u5408\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570<\/p>\n<p>num3=random.gauss(0,1)<\/p>\n<p>print(num3)<\/p>\n<p>\u8fd9\u4e2a\u4f8b\u5b50\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528random\u5e93\u751f\u6210\u4e0d\u540c\u7c7b\u578b\u7684\u968f\u673a\u6570\u548c\u5982\u4f55\u4ece\u5e8f\u5217\u4e2d\u968f\u673a\u9009\u62e9\u5143\u7d20\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5b83\u4f7f\u7528\u4e86random\u5e93\u4e2d\u7684\u4ee5\u4e0b\u51fd\u6570\uff1a<\/p>\n<p>random()\uff1a\u751f\u6210\u4e00\u4e2a0\u52301\u4e4b\u95f4\u7684\u968f\u673a\u6d6e\u70b9\u6570\u3002<\/p>\n<p>randint(a,b)\uff1a\u751f\u6210\u4e00\u4e2aa\u5230b\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\u3002<\/p>\n<p>choice(seq)\uff1a\u4ece\u5e8f\u5217seq\u4e2d\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<p>sample(seq,k)\uff1a\u4ece\u5e8f\u5217seq\u4e2d\u968f\u673a\u9009\u62e9k\u4e2a\u5143\u7d20\u3002<\/p>\n<p>gauss(mu,sigma)\uff1a\u751f\u6210\u4e00\u4e2a\u7b26\u5408\u6b63\u6001\u5206\u5e03\u7684\u968f\u673a\u6570\uff0c\u5176\u4e2dmu\u662f\u5747\u503c\uff0csigma\u662f\u6807\u51c6\u5dee\u3002<\/p>\n<p>\u5947\u8ff9mu\u5e78\u8fd0\u7b26\u5492\u7684\u4f5c\u7528\u548ckmu\u662f\u4ec0\u4e48\u5355\u4f4d\u7684\u95ee\u9898\u5206\u4eab\u7ed3\u675f\u5566\uff0c\u4ee5\u4e0a\u7684\u6587\u7ae0\u89e3\u51b3\u4e86\u60a8\u7684\u95ee\u9898\u5417\uff1f\u6b22\u8fce\u60a8\u4e0b\u6b21\u518d\u6765\u54e6\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d,\u4eca\u5929\u5c0f\u7f16\u6765\u4e3a\u5927\u5bb6\u89e3\u7b54\u4ee5\u4e0b\u7684\u95ee\u9898\uff0c\u5173\u4e8e\u5947\u8ff9mu\u5e78\u8fd0\u7b26\u5492\u7684\u4f5c\u7528\uff0ckmu\u662f\u4ec0\u4e48\u5355\u4f4d\u8fd9\u4e2a\u5f88\u591a\u4eba\u8fd8\u4e0d\u77e5\u9053\uff0c\u73b0\u5728\u8ba9\u6211\u4eec\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01 kmu\u662f\u4ec0\u4e48\u5355\u4f4d ku\u662f\u9176\u7684\u6d3b\u529b\u5355\u4f4d\uff0cu\u548cU\u662f\u4e00\u6837\u7684\uff0c1ku\u76f8\u5f53\u4e8e0.3\u56fd\u9645\u5355\u4f4dIU\u3002\u4e0d\u80fd\u6362\u6210mg\uff0c\u56e0\u4e3a\u9176\u7684\u5355&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"_links":{"self":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/51260"}],"collection":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/comments?post=51260"}],"version-history":[{"count":1,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/51260\/revisions"}],"predecessor-version":[{"id":51261,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/posts\/51260\/revisions\/51261"}],"wp:attachment":[{"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/media?parent=51260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/categories?post=51260"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/tags?post=51260"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/stmu.1000uc.com\/mu\/wp-json\/wp\/v2\/topic?post=51260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}