{"id":159,"date":"2009-08-06T00:46:47","date_gmt":"2009-08-05T15:46:47","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2009\/08\/06\/jython_twitter\/"},"modified":"2009-08-06T00:46:47","modified_gmt":"2009-08-05T15:46:47","slug":"jython_twitter","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2009\/08\/06\/jython_twitter\/","title":{"rendered":"Jython \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u307e\u308b Twitter\u3059\u3054\u3044 \u7d50\u69cb\u3046\u308c\u3057\u3044"},"content":{"rendered":"<p>\u306a\u3093\u3068\u306a\u304fPython\u306e\u96f0\u56f2\u6c17\u3082\u3064\u304b\u3081\u3066\u304d\u305f\u306e\u3067\u3001 <a href=\"http:\/\/www.jython.org\/\" target=\"_blank\">Jtyho\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3057\u3066\u304d\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p>Java\u53d6\u308a\u6271\u3044\u306e\u6577\u5c45\u304c\u4e0b\u304c\u308a\u305d\u3046\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"400\">C:\\work\\&gt;java -jar jython_installer-2.5.0.jar<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><font color=\"#8080ff\">\u30a6\u30a3\u30b6\u30fc\u30c9\u306b\u5f93\u3063\u3066\u9032\u3081\u3066\u3044\u304f\u3002<\/font><\/p>\n<p>&#160;<a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"jython01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython01_thumb.jpg\" width=\"244\" height=\"114\" \/><\/a> <\/p>\n<p>&#160;<a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"jython02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython02_thumb.jpg\" width=\"244\" height=\"114\" \/><\/a> <\/p>\n<p><font color=\"#8080ff\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6307\u5b9a(\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u308b)<\/font><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"jython03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython03_thumb.jpg\" width=\"244\" height=\"114\" \/><\/a> <\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"jython04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython04_thumb.jpg\" width=\"244\" height=\"114\" \/><\/a>&#160;<\/p>\n<p><font color=\"#8080ff\">jython \u3067\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30d1\u30b9\u3092\u4e0a\u8a18\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u901a\u3057\u3066\u304a\u304f\u3002<\/font><\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"400\">c:\\jython2.5.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython06.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"jython06\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython06_thumb.jpg\" width=\"244\" height=\"215\" \/><\/a><\/p>\n<p>\u4ee5\u4e0a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u30fb\u30fb\u30fb<\/p>\n<p>\u3055\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u7acb\u3061\u4e0a\u3052\u3066\u30fb\u30fb\u30fb\u3068\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"400\">C:\\work&gt;jython                    <\/p>\n<p>&gt;&gt;&gt; for i in range(10):            <br \/><font color=\"#ff0000\">LookupError: unknown encoding ms932<\/font><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3093\uff1f\uff1f\uff1f <\/p>\n<p>\u306a\u3093\u304b\u6319\u52d5\u304c\u3078\u3093\u3060\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"400\">\n<p>&gt;&gt;&gt; s = &#8216;test&#8217;            <br \/>&#8230;             <br \/>&#8230;             <br \/>&#8230;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30eb\u30fc\u30d7\u306f\u304b\u3051\u306a\u3044\u3057\u3001\u6587\u5b57\u5217\u3092\u30d7\u30ea\u30f3\u30c8\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3001\u7d99\u7d9a\u884c\u30e2\u30fc\u30c9\u304b\u3089\u5fa9\u5e30\u3057\u306a\u3044\u3002\u3002\u3002<\/p>\n<p><a href=\"http:\/\/typea-mixi01.appspot.com\/yh_s?q=jython+LookupError\" target=\"_blank\">Google\u5148\u751f<\/a>\u306b\u805e\u3044\u3066\u307f\u3066\u3082\u7684\u3092\u5f97\u306a\u3044\u30fb\u30fb\u30fb<\/p>\n<p>Eclipse \u306e PyDev \u304b\u3089\u306f\u3046\u307e\u304f\u3044\u304f\u306e\u3067\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u7279\u6709\u306e\u554f\u984c\u306a\u3093\u3060\u308d\u3046\u304b\uff1f<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"485\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"483\">\n<p>C:\\work&gt;jython &#8211;help            <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; :             <br \/>-C codec : Use a different codec when reading from the console.             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; :<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u30d8\u30eb\u30d7\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u306e\u5165\u529b\u3092\u5225\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3060\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"477\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"475\">\n<p>C:\\work&gt;<font color=\"#ff0000\">jython -C utf-8<\/font>             <br \/>&gt;&gt;&gt; for i in range(3):             <br \/>&#8230;&#160;&#160;&#160;&#160; print i             <br \/>&#8230;             <br \/>0             <br \/>1             <br \/>2<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u304a\u3063\u304a\u3063\u304a\u3063\u3002utf-8 \u3092\u6307\u5b9a\u3057\u305f\u3089\u3001\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u305f\u3088\u3002Vista\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3063\u3066 utf-8 \u3060\u3063\u305f\u3063\u3051\uff1f<\/p>\n<p>\u305f\u3060\u3001\u65e5\u672c\u8a9e\u306f\u3046\u307e\u3044\u3053\u3068\u3044\u304b\u306a\u3044\u3002\u3002\u3002<\/p>\n<p>\u306a\u3093\u3066\u3001\u3053\u3068\u3092<a href=\"http:\/\/twitter.com\/pppiroto\" target=\"_blank\">Twitter<\/a> \u3067\u3064\u3076\u3084\u3044\u305f\u3089\u3001\u306a\u3001\u306a\u3093\u3068\u3001<font color=\"#ff0000\" size=\"3\"><strong>Jython\u306e\u30ea\u30fc\u30c9\u958b\u767a\u8005Frank Wierzbicki\u6c0f\u304b\u3089\u3001\u56de\u7b54\u304c\u3068\u3069\u3044\u3061\u3083\u3063\u305f\u3002<\/strong><\/font><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython07.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px\" border=\"0\" alt=\"jython07\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/5148cce95a6e_1382A\/jython07_thumb.jpg\" width=\"244\" height=\"172\" \/><\/a> <\/p>\n<p>version 2.5.1 \u3067\u4fee\u6b63\u3059\u3079\u304f\u9032\u6357\u4e2d\u3068\u306e\u3053\u3068\u3002<a title=\"http:\/\/bugs.jython.org\/issue1066\" href=\"http:\/\/bugs.jython.org\/issue1066\">http:\/\/bugs.jython.org\/issue1066<\/a><\/p>\n<p>\u3064\u30fc\u304bTwitter\u3059\u3054\u3044\u306d\u3002\u76f4\u63a5\u56de\u7b54\u3092\u3044\u305f\u3060\u3051\u308b\u3068\u306f\u3002\u3002\u3002\u7d50\u69cb\u611f\u52d5\u3057\u307e\u3057\u305f\u3002 \u3069\u3046\u3082\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>priority \u304c low \u306a\u306e\u304c\u6c17\u304c\u304b\u308a\u3067\u3059\u304c\u30fb\u30fb\u30fb<\/p>\n<p>\u30d1\u30c3\u30c1\u306e\u63d0\u4f9b\u3092\u5f85\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306a\u3093\u3068\u306a\u304fPython\u306e\u96f0\u56f2\u6c17\u3082\u3064\u304b\u3081\u3066\u304d\u305f\u306e\u3067\u3001 Jtyho\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 Java\u53d6\u308a\u6271\u3044\u306e\u6577\u5c45\u304c\u4e0b\u304c\u308a\u305d\u3046\u3002 C:\\work\\&gt;java -jar jython_installer-2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[6,27,20],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-java","category-jython","category-python"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}