{"id":11660,"date":"2021-10-09T17:44:13","date_gmt":"2021-10-09T08:44:13","guid":{"rendered":"https:\/\/kusakarism.info\/?p=11660"},"modified":"2021-10-19T00:57:43","modified_gmt":"2021-10-18T15:57:43","slug":"programming_python","status":"publish","type":"post","link":"https:\/\/kusakarism.info\/?p=11660","title":{"rendered":"\u3053\u306e\u4e00\u672c\u3067\u300cPython\u300d\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"},"content":{"rendered":"<h2>\u52d5\u753b\u5185\u3067\u66f8\u3044\u305f\u300c\u91e3\u308a\u30b2\u30fc\u30e0\u300d\u306e\u30b3\u30fc\u30c9<\/h2>\n<p><strong>\u307e\u3001\u5b9f\u969b\u306f\u300c\u91e3\u308a\u300d\u3068\u3044\u3046\u540d\u306e\u53cd\u5c04\u795e\u7d4c\u30b2\u30fc\u30e0\u3067\u3059\u3051\u3069(-_-;)<br \/><a href=\"https:\/\/kusakarism.info\/wp-content\/uploads\/2021\/10\/fishing.zip\">fishing<\/a> \u2190exe\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb(zip)<br \/><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000; font-size: 14pt;\">\u3053\u306e\u4e00\u672c\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u6c17\u5206\u306b\u306a\u308b<\/span><\/strong>\u30fb\u30fb\u30fb\u3092\u30c6\u30fc\u30de\u3068\u3057\u305f\u3053\u306e\u52d5\u753b\u3002<\/p>\n<p>\u4eca\u56de\u306e\u8a00\u8a9e\u306f<span style=\"font-size: 24pt; color: #083761;\">Python<\/span>\u3067\u3059\u3002<\/p>\n<p>\u52d5\u753b\u306f<span style=\"font-size: 14pt;\"><a href=\"https:\/\/youtu.be\/KqmlRIMOyUM\">\u30b3\u30c1\u30e9<\/a><\/span><br \/><a href=\"https:\/\/youtu.be\/KqmlRIMOyUM\"><img decoding=\"async\" src=\"https:\/\/kusakarism.info\/wp-content\/themes\/the-thor\/img\/dummy.gif\" data-layzr=\"https:\/\/kusakarism.info\/wp-content\/uploads\/2021\/10\/python-400x225.jpg\" alt=\"\" width=\"400\" height=\"225\" class=\"alignnone wp-image-11662 size-medium\" \/><\/a><\/p>\n<div class=\"ep-box es-Bicon icon-tag bgc-VPorange\"><span style=\"font-size: 14pt;\"><strong>\u3010\u3053\u306e\u52d5\u753b\u306e\u5185\u5bb9\u3011<\/strong><\/span><br \/><strong>1. \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u74b0\u5883<\/strong><br \/><strong>2. Python\u306e\u5c0e\u5165<\/strong><br \/><strong>3. \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u3064\u3044\u3066<\/strong><br \/>\u3000\u3000\u30fb\u6614\u306f\u30de\u30a6\u30b9\u306a\u3093\u3066<br \/>\u3000\u3000\u30fb\u30e1\u30e2\u5e33\u3092\u3072\u3089\u304f<br \/>\u3000\u3000\u30fb\u4e00\u5fdc\u3001\u3001\u3001\u66f8\u3051\u308b\u3093\u3067\u3059\u3002<br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u30e1\u30e2\u5e33\u3067\u3082\u3002<br \/><strong>4. Python\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c\u65b9\u6cd5<\/strong><br \/>\u3000\u3000\u30fb\u62e1\u5f35\u5b50\u306b\u3064\u3044\u3066<br \/>\u3000\u3000\u30fbPython\u30d5\u30a1\u30a4\u30eb\u306e\u5b9f\u884c<br \/><strong>5. Python\u306e\u95a2\u6570<\/strong><br \/>\u3000\u3000\u30fb\u7d44\u307f\u8fbc\u307f\u95a2\u6570<br \/>\u3000\u3000\u30fb\u95a2\u6570\u3092\u81ea\u5206\u3067\u4f5c\u308b\u3068\u304d\u306f<br \/>\u3000\u3000\u30fb\u95a2\u6570\u3092\u307e\u3068\u3081\u305f\u30e2\u30b8\u30e5\u30fc\u30eb<br \/><strong>6. \u5236\u5fa1\u69cb\u6587<\/strong><br \/><strong>7.\u300c\u91e3\u308a\u300d\u3068\u306f\u540d\u3070\u304b\u308a\u306e\u53cd\u5c04\u795e\u7d4c\u30b2\u30fc\u30e0\u4f5c\u308a<\/strong><\/div>\n<p>\u3053\u307e\u304b\u3044\u89e3\u8aac\u306f\u52d5\u753b\u3092\u898b\u3066\u3082\u3089\u3046\u3068\u3057\u3066\u3001\u53d6\u308a\u6562\u3048\u305a\u30b3\u30fc\u30c9\u306f\u30b3\u30c1\u30e9(\u2193)\u3067\u3059\u3002<\/p>\n\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-file=\"fishing.py\" data-lang=\"Python\"><code>#\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\nimport random   #\u30e9\u30f3\u30c0\u30e0\u306a\u5024\u3092\u53d6\u5f97\u3059\u308b\nimport time     #\u6642\u523b\u3092\u53d6\u5f97\u3059\u308b\nimport os       #\u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u30b7\u30b9\u30c6\u30e0\u3092\u5236\u5fa1\u3059\u308b\n\n#\u30b2\u30fc\u30e0\u30b9\u30bf\u30fc\u30c8\u306e\u78ba\u8a8d\ninput(&quot;\u91e3\u308a\u3092\u59cb\u3081\u308b\u3010ENTER\u3011&quot;)\n\n#\u30b2\u30fc\u30e0\u30eb\u30fc\u30d7(\u7d42\u4e86\u3059\u308b\u307e\u3067\u30ea\u30d7\u30ec\u30a4)\nwhile True :\n    os.system(&quot;cls&quot;)    #\u753b\u9762\u30af\u30ea\u30a2\n    print(&quot;\u9b5a\u304cHIT!\u3057\u305f\u3089\u3059\u3070\u3084\u304fENTER\u3092\uff01&quot;)\n    print(&quot;(\u30de\u30b0\u30ed\uff1e\u30bf\u30a4\uff1e\u30a4\u30ef\u30b7\uff1e\u30e1\u30c0\u30ab)&quot;)\n\n    waitTime = random.randint(3, 8) #\u5f85\u6a5f\u6642\u9593\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u9078\u629e(3\uff5e8\u79d2)\n\n    for num in range(waitTime): #\u5f85\u6a5f\u4e2d(1\u79d2\u3054\u3068\u306b\u300c\u30fb\u300d\u8868\u793a)\n        time.sleep(1)\n        print(&quot;\u3000\u30fb&quot;)\n\n    print(&quot;HIT!&quot;)   #\u5f85\u6a5f\u7d42\u4e86(\u300cHIT\u300d\u3092\u8868\u793a)\n    startTime = time.time() #\u30b9\u30bf\u30fc\u30c8\u6642\u523b\u3092\u53d6\u5f97\n\n    input() #\u5165\u529b\u5f85\u3061\n\n    stopTime = time.time()  #ENTER\u30d7\u30c3\u30b7\u30e5\u6642\u523b\u3092\u53d6\u5f97\n\n    result = stopTime - startTime   #\u53cd\u5fdc\u30bf\u30a4\u30e0\u3092\u8a08\u7b97\n\n    #\u7d50\u679c\u8868\u793a\n    resTime = int(result*100)\/100\n    msg = str(resTime)+&quot;\u79d2&quot;\n\n    if result &lt;=0.05 :\n        print(&quot;\u307e\u3060\u304b\u304b\u3063\u3066\u306a\u3044\uff01&quot;)\n        msg = &quot;\u8a18\u9332\u306a\u3057&quot;\n    elif result &lt;=0.2 :\n        print(&quot;\u30de\u30b0\u30ed\u304c\u91e3\u308c\u305f\u3002&quot;)\n    elif result &lt;=0.4 :\n        print(&quot;\u30bf\u30a4\u304c\u91e3\u308c\u305f\u3002&quot;)\n    elif result &lt;=0.6 :\n        print(&quot;\u30a4\u30ef\u30b7\u304c\u91e3\u308c\u305f\u3002&quot;)\n    elif result &lt;=0.8 :\n        print(&quot;\u30e1\u30c0\u30ab\u304c\u91e3\u308c\u305f\u3002&quot;)           \n    else :\n        print(&quot;\u9003\u3052\u3089\u308c\u305f\u3002&quot;)\n\n    print(&quot;(\u30bf\u30a4\u30e0\uff1a&quot;, msg, &quot;)&quot;, sep=&quot;&quot;)\n\n    #\u30ea\u30d7\u30ec\u30a4(0\u4ee5\u5916\u306a\u3089\u3059\u3079\u3066\u30ea\u30d7\u30ec\u30a4)\n    replay = input(&quot;\\n\u3082\u3046\u4e00\u5ea6\u6311\u6226(\u3059\u308b\uff1a1\uff0f\u3057\u306a\u3044\uff1a0)&quot;)\n    if replay == &quot;0&quot; :\n        break<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u52d5\u753b\u5185\u3067\u66f8\u3044\u305f\u300c\u91e3\u308a\u30b2\u30fc\u30e0\u300d\u306e\u30b3\u30fc\u30c9 \u307e\u3001\u5b9f\u969b\u306f\u300c\u91e3\u308a\u300d\u3068\u3044\u3046\u540d\u306e\u53cd\u5c04\u795e\u7d4c\u30b2\u30fc\u30e0\u3067\u3059\u3051\u3069(-_-;)fishing \u2190exe\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb(zip) \u3053\u306e\u4e00\u672c\u3067\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u304d\u308b\u6c17\u5206\u306b\u306a\u308b\u30fb\u30fb\u30fb\u3092\u30c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11661,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[349,340],"tags":[337,355,338],"class_list":["post-11660","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","category-programming","tag-python","tag-355","tag-338"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/posts\/11660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kusakarism.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11660"}],"version-history":[{"count":16,"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/posts\/11660\/revisions"}],"predecessor-version":[{"id":11706,"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/posts\/11660\/revisions\/11706"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kusakarism.info\/index.php?rest_route=\/wp\/v2\/media\/11661"}],"wp:attachment":[{"href":"https:\/\/kusakarism.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kusakarism.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kusakarism.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}