{"version":"1.0","title":" python \u3067 yes/no \u3067\u5b9f\u884c\u3059\u308b/\u3057\u306a\u3044\u306e\u51e6\u7406\u306e\u30e1\u30e2","url":"https://cortyuming.hateblo.jp/entry/2015/12/26/085736","published":"2015-12-26 08:57:36","author_name":"CortYuming","blog_title":"\u724c\u8a9e\u5099\u5fd8\u9332 -pygo","height":"190","provider_name":"Hatena Blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F2015%2F12%2F26%2F085736\" title=\" python \u3067 yes/no \u3067\u5b9f\u884c\u3059\u308b/\u3057\u306a\u3044\u306e\u51e6\u7406\u306e\u30e1\u30e2 - \u724c\u8a9e\u5099\u5fd8\u9332 -pygo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"description":"\u5909\u66f42020-06-09: python2.x\u306e raw_input \u304c python3.x \u3067 input \u306b\u5909\u66f4\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u4fee\u6b63 \u30b3\u30fc\u30c9 hoge.py def yes_no_input(): while True: choice = input(\"Please respond with 'yes' or 'no' [y/N]: \").lower() if choice in ['y', 'ye', 'yes']: return True elif choice in ['n', 'no']: return False if __name__ == '__main__': if yes\u2026","blog_url":"https://cortyuming.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/CortYuming/","categories":["Python"],"type":"rich"}