ååãåã åã¨ç¥æ¥ã«ã¤ãã¦è§¦ããéãæ¦ã«èå³ãæã£ãã®ã§ Wikipedia ã®æ¦æ³é¢é£ãèªã¿æ¼ã£ã¦ããã天æã®è©±ã ãã§ãªããæ´å²ãæåã®è©±ãæ··ãã£ã¦ãã¦ãããããã ããããã£ã¦ãªãã£ãæ§æ¦ã«ã¤ãã¦ãç¥ããã¨ãã§ãããç義ã®æ§æ¦ã¯ä»ã®æ¥æ¬ã®æ¦ï¼ã°ã¬ã´ãªãªæ¦ããã ããããå¹´ã®è¨ç®åºæºãçç´ï¼ã®åã®æ¦ã®æå³ã§ãææ²»5å¹´12æ2æ¥ã¾ã§ä½¿ããã¦ãã天ä¿æ¦ãä¿ã«è¨ãæ§æ¦ã¯ã天ä¿æ¦ã®ç½®éæ³ãåãã¦ãã¦ãä»ã«ç¡çããé©ç¨ãããã®ãã¨ã 天ä¿æ¦ã£ã½ãã®ãç®åº ããã¦ããã®æ§æ¦ãç®åºãã QREKI.AWK ãããã³ãã®ç§»æ¤ãæ´¾çåãçºè¦ã .js, .pl, .php etc. ãã§ã qreki.py ã¯æ¤ç´¢ãã¦ãè¦ã¤ãããªãã£ãã®ã§ä½ã£ã¦ã¿ãã >>> from qreki import Kyureki >>> k = Kyureki.from_ymd(2009, 11, 27) >>> print
Source code: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. unittest.mock provides a core Mock class removing the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / att
ï¼æã«ãPythonãå§ãããªããï¼ãã¡ã¤ã«ã®è»½éWebãã¬ã¼ã ã¯ã¼ã¯ãBottleãããããããã¨ããã®ãæ¸ããã¨ããããªããªãåé¿ã大ããã£ããããã§ä»åã¯ãç§ããããã使ã£ããã¨ãããPythonã®Webãã¬ã¼ã ã¯ã¼ã¯ï¼ç¨®ã«ã¤ãã¦ãããããã«ç´¹ä»ããã¨ããã®ããã£ã¦ã¿ãããã³ã¡ã³ãã¯ãç§ã®ãã主観çãªå°è±¡ã«åºã¥ãã¦ããã Bottleï¼ããã«ï¼ http://bottlepy.org/ ãbottle.pyãã¨ããï¼ãã¡ã¤ã«ã ãã§ã§ãã¦ãããç°å¢æ§ç¯ãä¸è¦ãªã®ã§ãPythonå ¥éã«æé©ãï¼ãã¡ã¤ã«ã«å ¨é¨å ¥ã£ã¦ããã®ã§ãçµã¿è¾¼ãã®ã容æã ããä¾åãªã¹ã¯ããªãã®ã§ãå®ç¨ã«ãããã¨æããããã ãã·ã³ãã«ãªã®ã¯ãçåæ¦ç¥ã¨ãã¦ãå¼·ãã CherryPyï¼ãã§ãªã¼ãã¤ï¼ http://cherrypy.org/ Bottleãã大ããããå¤é¨ä¾åããªãã®ã§ããããç°å¢æ§ç¯ä¸è¦ã§ãPythonå ¥
pythonã®ç°å¢ãAnacondaã§æ§ç¯ããããhomebrewã§ä½ã£ãç°å¢ã«ä¸å ·åãåºã¾ããã å ¥ããåã«ãããã調ã¹ãã®ã«ç¥ããªãã£ããã¨ãªã®ã§ãè½ã¨ãã¦æ®ãã¦ããã¾ãã MacOS X Yosemite homebrew, Anacondaãâæ··ãããªå±éº ãã¨ãã¨ãhomebrewãç¨ãã¦Node.jsçã®ç°å¢ãæ§ç¯ããhubotã¨æ¯ãã¦ããç°å¢ã æè¿ã話é¡ã®TensorFlowã使ã£ã¦ã¿ãã¹ãPythonã®ç°å¢ãAnacondaã§ä½ãããã¥ã¼ããªã¢ã«ãå°ã åããå§ãã¦ãã¾ããã ä¹ ã ã«npmã³ãã³ããæã£ãã¨ãã⦠-bash: npm: command not found ãã¡ãï¼ï¼ å©ãã¦ï¼brew doctorï¼ å°ã£ãã¨ãã®brew doctorãè¦åãåºã¦ãã¾ãã Warning: Anaconda is known to frequently break Home
Web Server Gateway Interface (WSGI; ã¦ã£ã¹ãã¼[1][2]) ã¯ãããã°ã©ãã³ã°è¨èªPythonã«ããã¦ãWebãµã¼ãã¨Webã¢ããªã±ã¼ã·ã§ã³ï¼ãããã¯Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ï¼ãæ¥ç¶ããããã®ãæ¨æºåãããã¤ã³ã¿ãã§ã¼ã¹å®ç¾©ã§ãããã¾ããWSGIããçæ³ãå¾ã¦ãä»ã®è¨èªã§ãåæ§ã®ã¤ã³ã¿ãã§ã¼ã¹ãä½ãããã éå»ã«ããã¦ãPythonã«å¤ç¨®ã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãåå¨ãããã¨ã¯ãPythonã§Webã¢ããªã±ã¼ã·ã§ã³ãéçºãããã¨ããè ã«ã¨ã£ã¦åé¡ã«ãªã£ã¦ãããã¨ããã®ããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãé¸æãããã¨ã«ãã£ã¦ã使ç¨ã§ããWebãµã¼ããå¶éããã¦ãã¾ã£ããããã®éã®å¶éãçºçãããããããã§ãããPythonã§æ¸ãããWebã¢ããªã±ã¼ã·ã§ã³ã¯ãFastCGI, mod_python, CGI, ããã«ã¯Web
Ruby ã¯æè»ãªããã°ã©ãã³ã°è¨èªã§ãã Sinatra ã®ãããªæ軽ã§è»½éãªã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãããã¾ãããã¾ã¾ã§åæç¨ã®è¨èªã¨ãã¦ä¸»ã« Python ã§çµ±è¨ããã¼ã¿ã®å¯è¦åããããªã£ã¦ãã¾ãããããã¡ãã Python ã«ãå¤ç¨®å¤æ§ãªã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãããã¾ãã æ°å¤è¨ç®ãªã©ã Python ã§ãããªãä»çµã¿ãã¦ã§ãã·ã¹ãã ã¨ãã¦æä¾ãããå ´åãããããå¥ã®è¨èªãå©ç¨ããããã¦ã§ãã®é¨åãåãè¨èªã§ä½ã£ã¦ãã¾ã£ãã»ããä¸è²«æ§ãããã¾ãã ããã§ä»å㯠Flask ã¨ãã Python ã®å°è¦æ¨¡ãªãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ããããç°¡åãªã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ã¿ã¾ãã Flask ã«ã¯æ¥æ¬èªè¨³ããã親åãªã¦ã¼ã¶ã¼ã¬ã¤ããããã¾ãã https://a2c.bitbucket.io/flask/ ã¨ã¦ãä¸å¯§ã«æ¸ããã¦ããã®ã§ãåºæ¬çã«ã¯ãã®ããã¥ã¡ã³
Flaskï¼ãã©ã¹ã¯ï¼ã¯ãããã°ã©ãã³ã°è¨èªPythonç¨ã®ã軽éãªã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ãããæ¨æºã§æä¾ããæ©è½ãæå°éã«ä¿ã£ã¦ãããããèªèº«ãããã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ãã¨å¼ãã§ãããWerkzeug WSGIãã¼ã«ãããã¨Jinja2ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãåºã«ä½ããã¦ãããBSDã©ã¤ã»ã³ã¹ã§å ¬éããã¦ããã æ¦è¦[ç·¨é] Flaskã¯ãæ¨æºã§æä¾ããæ©è½ãæå°éã«ä¿ã£ã¦ãããããèªèº«ãããã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ãã¨å¼ãã§ãããFlaskèªèº«ã¯ãä»ã®ãã¬ã¼ã ã¯ã¼ã¯ããã°ãã°æã£ã¦ãããããªããã¼ã¿ãã¼ã¹æ½è±¡åã¬ã¤ã¤ããã©ã¼ã å¤ã®æ¤è¨¼ãªã©ã®æ©è½ãæããªããããã¯ãã©ããªWebã¢ããªã±ã¼ã·ã§ã³ã«ãé©åããè¯ãåºç¤ãä½ãããã®è¨è¨å¤æã ã¨ãã¦ããï¼ä¾ãã°ããã³ãã¬ã¼ãã¨ã³ã¸ã³ã¯ã»ã¨ãã©ã®Webã¢ããªã±ã¼ã·ã§ã³ã§æç¨ã ããé¢ä¿ãã¼ã¿ãã¼ã¹çã¯ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³ãå¿ è¦ã¨ãããã®
Welcome to Flask¶ Welcome to Flaskâs documentation. Get started with Installation and then get an overview with the Quickstart. There is also a more detailed Tutorial that shows how to create a small but complete application with Flask. Common patterns are described in the Patterns for Flask section. The rest of the docs describe each component of Flask in detail, with a full reference in the API
Djangoï¼ã¸ã£ã³ã´ï¼ã¯ãPythonã§å®è£ ãããWebã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ãMVCãã¶ã¤ã³ãã¿ã¼ã³ã«ç·©ããã«å¾ãããã¨ãã¨ã¯ã¢ã¡ãªã«åè¡å½ã«ã³ã¶ã¹å·ãã¼ã¬ã³ã¹ã«ããWorld Company[8]ã®ããã«ããã¥ã¼ã¹ç³»ã®ãµã¤ãã管çããç®çã§éçºããã2005å¹´7æã«BSD Licenseã§å ¬å¼ã«ãªãªã¼ã¹ãããããã¬ã¼ã ã¯ã¼ã¯ã¯ã¸ãã·ã¼ã»ã¹ã¦ã£ã³ã°ã®ã®ã¿ãªã¹ãã§ããã¸ã£ã³ã´ã»ã©ã¤ã³ãã«ãã«ã¡ãªãã§å½åãããã Djangoã®ç¬¬ä¸ã®ç®çã¯ãè¤éãªãã¼ã¿ãã¼ã¹ä¸»ä½ã®ã¦ã§ããµã¤ãã®æ§ç¯ãç°¡åã«ãããã¨ã§ãããã³ã³ãã¼ãã³ãã®åå©ç¨æ§ã¨'pluggability'ãç´ æ©ãéçºãDon't repeat yourselfã®ååã«åç¹ãç½®ãã¦ããããã¡ã¤ã«ããã¼ã¿ã®ã¢ãã«ã«ãããã¾ã§ãPythonãä¸è²«ãã¦ç¨ãããã¦ãããDjangoã¯ã¾ããåçã«çæããããã¼ã¿ã¢ãã«ã®å®ç¾©ãéãã¦å®å ¨ã«
ããã¾ã§ã§å°ãã³ã¡ã³ãã¢ã¦ãã«ã¤ãã¦è§¦ãã¦ãã¾ããã Pythonã§ã¯ã # ãï¼ããã·ã¥ãã¼ã¯ï¼ãã³ã¡ã³ãã¢ã¦ãè¨å·ã¨ãªããããã·ã¥ãã¼ã¯ä»¥éã®è¨è¿°ãå®è¡å¯¾è±¡ã¨ã¯ãªãã¾ãããï¼è¡ã®ã¿ã³ã¡ã³ãã¢ã¦ãã¯ããã§ååã§ãããä»ã®è¨èªã§ã¯å½ç¶ã®ããã«åå¨ããè¤æ°è¡ã®ã³ã¡ã³ãã¢ã¦ãã¯ã©ãããã°è¯ãã®ã§ããããã è¤æ°è¡ã³ã¡ã³ãã¢ã¦ã ãããPythonã«ã¯è¤æ°è¡ã®ã³ã¡ã³ãã¢ã¦ããããã¾ããï¼ä»å¾ã®æ°ãã¼ã¸ã§ã³ã§ã¯å®è£ ãããããããã¾ãããï¼ããã ã代æ¿ã«ãªãããæ©è½ã¯ããã¾ããã¤ã³ãã³ãã«æ°ãä»ããå¿ è¦ãããã¾ãããã â ãï¼ã·ã³ã°ã«ã¯ã©ã¼ãã¼ã·ã§ã³ï¼ãããã¯ã â ãï¼ããã«ã¯ã©ã¼ãã¼ã·ã§ã³ï¼ï¼ã¤ã§ã³ã¡ã³ãã¢ã¦ãã¨ãããé¨åãå²ãã§ãã¾ãã°ããããããããã³ã¡ã³ãã§ãããã®ããã«æ±ããã¨ãã§ãã¾ãã # é常ã®ã³ã¡ã³ãã¢ã¦ã # print("test 1") print("test 2") #
ASCIIã®æååã§ãªããã®ãå«ã¾ãã¦ãã¾ãã¨ããã¨ã©ã¼ã§ãã å®è¡ãã¡ã¤ã«ã®ã®å é ã« # coding:utf-8 ãæ¸ãã¨ç´ãã¾ãã
ãµã¼ã¢ã³å¤§å¥½ã横山ã§ãã Pythonã使ãã¨ããã·ã¹ãã ã®ç°å¢ãæ±ããPythonã®ã³ã¼ããæ¸ãã¨ãã«ä¾¿å©ã§ãã ä»åãã®å°å ¥æ¹æ³ã説æãã¦ããããã¨æãã¾ãã Pythonã®ãã¼ã¸ã§ã³ãã¨ã®virtualenvã®ã¤ã³ã¹ãã¼ã« Amazon Linux 2015.03ã使ãå ´åã«ãæ°è¦AMIãã使ãå ´åã¨2014.09以åããã¢ããã°ã¬ã¼ããã¦ããå ´åã¨ã§ã Pythonã®ãã¼ã¸ã§ã³ãç°ãªãäºãããã¾ãã 以ä¸ããã¼ã¸ã§ã³ã«ãã£ã¦virtualenvã®ã¤ã³ã¹ãã¼ã«ãã¦ä¸ããã Python2.7ç³»ã®å ´å $ python -V Python 2.7.9 $ sudo yum list installed | grep python27-virtualenv (ä½ã表示ãããªããã°ãã¤ã³ã¹ãã¼ã«ããã¦ããªã) $ sudo yum install -y python27-virtualen
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}