GAE / py ãå§ããã for Flasher 第2åç® éçºç°å¢ãæ´ãããã¨ãã話ã§ãã 第1åç®ãããªã好è©ãããã ãããã㧠ã¯ã¦ãã twitter ãªã©ã§å¤ãã®åé¿ãããã ãã¦ã¨ã¦ãå¬ããæãã¾ãã ãããã¨ããããã¾ããã¾ã ã¾ã å ã¯é·ãã§ãããã²æå¾ã¾ã§ãä»ãåãä¸ããã éçºç°å¢ã¯äººãããããã ãããããã¨æãã®ã§ãä½ãæé«ã¨ã¯ä¸æ¦ã«ã¯è¨ããªãã¨æãã¾ãã åå人ã¨ãã¦ã Xcode4 ã®è¦ãç®ã好ã㧠Xcode4 ã§ä½ã¨ããªããªãããªãã¨æ¤è¨ãã¦ããã¨ããã§ããã for Flasher ã¨ãããã¨ã§ãEclipse ããã¼ã¹ã«éçºç°å¢ãæ´ãã¦ãããã¨æãã¾ãã Eclipse + PyDev Flash Builder ã FDT ã Eclipse ãã¼ã¹ã«ãªã£ã¦ãã¾ãã®ã§ ãã® UI ãæä½æã«é¦´æã¿ãããæ¹ãå¤ãã®ã§ã¯ã¨æãã¾ãã Ecl
âã«ä¾¿ä¹ãã¦Pythonçãæ¸ãã¦ã¿ã¾ããã Perlåºç¤ææ³æéãã¹ã¿ã¼ - Perlå ¥éããµã³ãã«ã³ã¼ãã«ããPerlå ¥éã Rubyåºç¤ææ³æéãã¹ã¿ã¼ - Route 477 PHPåºç¤ææ³æéãã¹ã¿ã¼ - Shin x blog ã»ã¨ãã©ä¸è¨ã®è¨äºã¨åããããªå 容ã§æ¸ããã®ã§Pythonå ¥éè¨äºã¨ãã¦ã¯è²ã æãã¦ããããã¾ãããäºæ¿ãã ããã Pythonã¯ç¾å¨3.xç³»ããªãªã¼ã¹ããã¦ãã¾ããæ¬è¨äºã§ã¯åºæ¬çã«Python2.6ã«ã¤ãã¦æ¸ãã¾ãã åèæç®ï¼ åãã¦ã®Python (asin:4873113938) Python Documentation Index http://www.python.org/doc/ Python å訳Document http://docs.python.jp/2/ 0. 対話ç°å¢ã¨ãã¦ä½¿ã 対話ç°å¢ pythonã¯ãã®ã¾ã¾å®è¡ããã¨å¯¾è©±ç°
ãã®ã¨ã³ããªã¼ã¯ãPythonå ¥éè ã¨ãPythonå ¥éäºåè»ã®æ¹ã対象ã¨ãã¦ãã¾ãã ã©ããã¦Pythonããã®ï¼ Pythonã£ã¦è¦ããããè¨èªãªãã§ããã¨ãã£ã¦ãããããªãã«ä½¿ãããªããããã«ãªãã«ã¯ãæ°åæéç¨åº¦ã¯ãããããã§ãããªãã¨ãªãã»ã»ã§åå¼·ãããªãããããªãã»ããã¾ãã§ããã¡ããã¨ãèªåãªãã®ç®æ¨ãè¨å®ãã¦ããåå¼·ãã¾ããããç§ã®ç®æ¨ã¯ã2011å¹´ä¸ã«ãPythonã§æ¥æ¬å½å ã§ããããæåã«ãªããã¨ã§ããããããã§ããã§ããpythonã§ããã£ã¦10çªãããã«è¡¨ç¤ºãããã°æºè¶³ã§ãããããããæåã«ãªã£ãããæ¥å¹´ã¯Pythonã§ä»äºãã¤ã¤ãä»ã®ãã¨åå¼·ãã¦ãã¨æãã¾ãã å®ã¯ä¸ççã«ã¯PHPãã人æ°ããã Pythonã¯ãJavaãCãC++ã«æ¬¡ãã§äººæ°ã®ããè¨èªã§ãã決ãã¦ãã¤ãã¼è¨èªã§ã¯ããã¾ããã 2011å¹´2æã®ã©ã³ãã³ã° GoogleAppEngineã§ä½¿ãã ã¯
if ( $blog == " Webã¨ã³ã¸ãã¢ã®ããã®ã©ã¤ããã㯠" ) { print " 1-byte.jp "; } ãã¼ã 1-byte.jpã¨ã¯ æ¸ãã¦ããã㯠æè¿ãã¨ã¦ãæ°ã«ãªã£ã¦ãããã¨ãããã¾ãã ãããâGoogle App Engine + Pythonâã§ãã å ã ãPythonã«ã¯èå³ãããã¾ããã ãªã©ã¤ãªã¼ã®Pythonå ¥éãèªç ´ãã¾ããã 10æ¥ã§ãã¼ãã Python å ¥éæ室ã5æ¥ã¾ã§ã¯ããã¾ããã ããããããã§çµããã¾ããâ¦ã CakePHPã¨ããæ £ã親ããã è¨èªã¨ãã¬ã¼ã ã¯ã¼ã¯ããã£ãã®ã§ããã¡ãã«èµ°ã£ã¦ãã¾ãã¾ããã ã§ãããç§ã¯Pythonistaã«æ§ããPHPerã§ãã ããããã§ä¸ã¤ãéãè °ãæãã¦Pythonã®åå¼·ãå§ãããã¨ã«ãã¾ããã Pythonãåå¼·ããä¸ã¤ã®å¼·ãçç±ä»ãã¨ãã¦ãâGoogle App Engineâã®å
ããã«ã¡ã¯ãchihiroã§ããä»åã¯Pythonã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãç´¹ä»ãããã¨æãã¾ãã Pythonã使ãå§ããé ãPHPã®SmartyããJavaã®Velocity/FreeMarkerã«ç¸å½ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ã¨ãã¦ãPythonã«ã¯ã©ããªãã®ãããã®ããã©ãã使ãã°ããã®ãããåãããªãã£ãçµé¨ãããã®ã§ãããããPythonãå§ããæ¹ã®åèã«ãªãã°å¹¸ãã§ãã ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã使ãç®çã®ä¸ã¤ã«ãWebãµã¤ãæ§ç¯ã»éå¶ã®å®¹æåã¨ãããã¨ãããã¨æãã¾ãããä»åã¯ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã®æ§æ ¼ããã£ã¨ç´¹ä»ãããã¨æãã¾ãã®ã§ãHTMLã®åºåã§ã¯ãªãã次ã®ãããªåç´ãªããã¹ãã®åºåãä¾ã«ã¨ã£ã¦è©±ãé²ãã¦ããã¾ãã * Hello unoh!! ** Unoh services - photozou - eiga seikatu - video pop - sugu.cc C
ã½ã¼ã¹ã³ã¼ã #!/usr/bin/python # coding: UTF-8 # ç¾å¨ã®æ¥ä»ã»æå»ã®åå¾ã¨åºå | datetimeã¯ã©ã¹ã®å±æ§ãtoday()ãstrftime()ã¡ã½ããã®ä½¿ãæ¹ import datetime # datetimeã¢ã¸ã¥ã¼ã«ã®ã¤ã³ãã¼ã import locale # importæã¯ã©ãã«æ¸ãã¦ãOK(å¯èªæ§ãªã©ã®çºãæ £ä¾ã§ã³ã¼ãã®å§ãã®æ¹) # today()ã¡ã½ããã§ç¾å¨æ¥ä»ã»æå»ã®datetimeåãã¼ã¿ã®å¤æ°ãåå¾ d = datetime.datetime.today() # âã¢ã¸ã¥ã¼ã«å.ã¯ã©ã¹å.ã¡ã½ããå print 'd == %s : %s\n' % (d, type(d)) # Microsecond(10^-6sec)ã¾ã§åå¾ # datetimeåã®åå±æ§ã¸ã®ã¢ã¯ã»ã¹ # year, month, day print
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}