You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
念é¡ã®æ°ããMacBookAirãæã«å ¥ãã¾ãã¦ãéçºã«ä½¿ç¨ããPythonã¯OSããã©ã«ãã¨ã¯å¥ã«ç¨æãããããã¼ãããã«è¨ãã¨ãã¤ãã«Python2.xç³»ã2.7ã§éçºã¹ããããããã¨ã確å®ããã®ã§ããã¤ã§ãPython3.xç³»ã«ç§»ããããã«ãããããã§ããã°ä¸é¨ã§ã¢ããPyPyãå«ãã¦è¤æ°ãã¼ã¸ã§ã³ã®Pythonãåãæ¿ãã¤ã¤ããã¹ããèµ°ãç°å¢ã«ãããã§ããã ã¨ããããã§ã調ã¹ã¦ã¿ããPythonã«ãRubyãPerlã§å¤§äººæ°ã®"~brew"ã"~env"ã¿ãããªã®ãããã¤ãããããã pythonbrew pyenv pythonz ã§ãè²ã 調ã¹ã¦ãããã¡ã«@ymotongpooããã®pythonz(pythonbrew)ã«é¢ããç§è¦ã¨ããè¨äºãæè¦ãã¾ããã ãããã«ããã±ã¼ã¸ç®¡çãã¼ã«ã§Pythonã®ã¤ã³ã¹ãã¼ã«ãã§ãã¦ãvirtualenvã§ä»®æ³ç°å¢ãã¨Pythonã®ãã¼ã¸
pyenv --help yenv 0.4.0-20130726 Usage: pyenv <command> [<args>] Some useful pyenv commands are: commands List all available pyenv commands local Set or show the local application-specific Python version global Set or show the global Python version shell Set or show the shell-specific Python version install Install a Python version using the python-build plugin uninstall Uninstall a specific Pytho
Pythonã®ã¡ãã£ã¨é«åº¦ãªimport åºæ¬ åããã©ã«ãã«hogehoge.pyã¨ãããã¡ã¤ã«ããã£ãã import hogehoge ã¨æ¸ããã¨ã§ã¤ã³ãã¼ãã§ãããã from hogehoge import * ã¨æ¸ãã°ãæ¬æä¸ã§hogehoge.ã¡ã½ããåãªãã¦æ¸ããã«ç´æ¥ã¡ã½ããåã ãã§ã¡ã½ãããå¼ã³åºãããasã§å¥åã¨ããã¾ãPythonã®ã¢ã¸ã¥ã¼ã«ã¤ã³ãã¼ãã®ããã¿ã§ãè¦ã¦ããããã¨ããã¨æãã åç½®ã 以ä¸ã«ããã±ã¼ã¸ã®è©±ãåºã¦ããªãã®ã¯è©±ããã話ãåç´ã«ããããã®ä»æ§ã§ããç¹ã«ãã¢ã¸ã¥ã¼ã«ãæ¢ãç¯å²ãæ¡å¼µããªããã¯æ®éã¯ããã±ã¼ã¸ã®ä»çµã¿ã使ã£ãã»ããç°¡åã«ã§ããã¨æããã§ãããã ãã§ã¯åºæ¥ãªããã¨ãããã§ã¯è§£èª¬ããããåç §ï¼ ããã±ã¼ã¸(__init__.py, __all__) / * ã import ãã / ããã±ã¼ã¸å ã§ã®åç §/ __path__ » Py
[Webãµã¼ãã¹] Pythonããã°ã©ãã³ã°ã2æéã§å¦ã¹ã43åã®ãã¥ã¼ããªã¢ã«åç»ã æçµæ´æ°æ¥ï¼ 2012/03/19 Python ã¯ããã«ããã°ã©ãã³ã°ã楽ãããªã£ã¦ãã¾ããã([Programming] ç«ã¨Rubyãå§ãã¾ãã åºç¤ææ³ã¾ã¨ã | Last Day. jp) Youtubeã«ã¯æ²¢å±±ã®åç»ãã¢ãããã¼ãããã¦ããã®ã¯çãããåç¥ã ã¨æãã¾ãããä»ã®æ代ããã°ã©ãã³ã°ãYoutubeã§å¦ã¹ã¦ãã¾ããã§ãã ä»æ¥ç´¹ä»ããã®ã¯Pythonã¨ããããã°ã©ãã³ã°è¨èªã®Youtubeãã¥ã¼ããªã¢ã«åç»ã§ãã åå¿è åãã§ããåç»ã¯è±èªã§ãããã¹ã¯ãªã¼ã³ãã£ã¹ããè¦ãªãããªã®ã§ããããããã§ãã Pythonããã¥ã¼ããªã¢ã«Python Programming Tutorial â 1 â Installing Python Pythonãã¤ã³ã¹ãã¼ã«ããæããæãã¦ããã¾
ã³ã¼ãã£ã³ã°å宿ã§Tumblrã§ä½ããããããªã¼ã¨æã£ã¦ãããã©ï¼Pythonã®æ¢åã®ã©ã¤ãã©ãªãã¡ãã£ã¨å¾®å¦(éçºæ¢ã¾ã£ã¦ã+æ°ããAPIã¸ã®å¯¾å¿ãã¤ãã¤ã)ã ã£ãã®ã§æ¸ãã¦ã¿ãï¼ååã¯pumblrï¼ ã½ã¼ã¹ã¯githubã«ç½®ããï¼ pypiã¯ãã ã¤ã³ã¹ãã¼ã« easy_installãããã°(Debianç³»ãªãpython-setuptoolsãaptitudeã¤ã³ã¹ãã¼ã«) $ easy_install pumblr ç¡ãå ´åã¯ã½ã¼ã¹ãã(rootã§) $ python setup.py install 使ã # ã¢ã¸ã¥ã¼ã«ã®import import pumblr # 'seikichi.tumblr.com' ãèªãã«ã¯ data = pumblr.api.read('seikichi') # quoteã ã5ååã£ã¦ãã data = pumblr.api.read('sei
Appleå ¨è¬ï¼iPhoneãiPadãMacãªã©ï¼ã«é¢ããæ å ±ã¨èªåã®æè¦ã»èå¯ã»ãã¿ãç´¹ä»ãã¾ãã ã®ãºã¢ã¼ãã»ã¸ã£ãã³ãã http://www.gizmodo.jp/2007/07/iphonepythonapache.html ããã«ã¼ã®NerveGasã¨iphone-shellã¹ã¿ããã iPhoneã§ä½¿ããPythonãApacheããªã¼ãã³ã½ã¼ã¹ã®ã¢ããªãä½ã£ãããã§ãã ããã§iPhoneãWEBãµã¼ãã«ãªãã¨ãããã¨ã§ããã 常ã«ãããã¯ã¼ã¯ã«ç¹ããã¾ã¾ã§iPhoneãæã£ã¦å¤åºããã°ã ãã¤ã§ãWEBãµã¼ãææã管çãã§ãã¾ããã ã¶ã£ã¡ãããç¹ã«æå³ã¯ãªãã§ããã©ã»ã»ã»ã Apache Strutsãã³ããã㯠æ¹è¨ç (Technical Handbook Series)/é»ä½ 幸å ï¿¥2,604 Amazon.co.jp
Program, Pythonmixiã®æ¥è¨ã¯ã¦ã¼ã¶ã¼ãã¨ã«æ¤ç´¢ã§ããªãã®ã§ããmixiã§ããæ¸ããã®ãã¤ã ã£ããªãããââãããæ¥è¨ã§æ¸ãã¦ããªã¹ã¹ã¡ã®æ ç»ã¯ãªãã ã£ãï¼ãã¨ããæã«å°ã£ã¦ãã¾ãã¾ãããï¼æå®ã¦ã¼ã¶ã¼ã®æ¥è¨æ¤ç´¢ã¨ãã§ããã°ããã®ã«ï¼*1 Pythonã®ãåå¼·ãããã¦ãæå®ã¦ã¼ã¶ã¼ã®æ¥è¨ãæ¤ç´¢ã§ããã¹ãã²ããã£ã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããï¼æ¤ç´¢ã¨ããã¼ã¿ãã¼ã¹ã¨ãããããããªããããã¨ããããã¿ã¤ãã«ã¨æ¬æããã£ã¯ã·ã§ããªã«å ¥ãã¦pickleã§ä¿åãã¾ããï¼ï¼ #!usr/bin/env python # -*- coding: utf-8 -*- """ search_diary.py æå®ã¦ã¼ã¶ã¼ã®mixiã®æ¥è¨ãå ¨ææ¤ç´¢ãã """ import os import pickle import re import time import mechanize # ã¦ã¼ã¶ã¼
id:cho45 å¶ä½ã® Pit ã Python ã«ç§»æ¤ãã¦ã¿ã¾ããã Pit ã£ã¦ä½? account management tool ã§ãã http://subtech.g.hatena.ne.jp/cho45/20080102/1199257680 ããã«è©³ããæ¸ãã¦ããã¾ãã ã¡ãªã¿ã« Ruby(id:cho45),Perl(id:cho45),PHP(halt) ã¨ããã®ã§ãã è¨å®ãã¡ã¤ã«å ±æãªã®ã§ä¾¿å©ã§ãï¼ï¼ 使ãæ¹ Pypi ã«ç»é²ãã¦ããã®ã§ $ sudo easy_install pitã§ã¤ã³ã¹ãã¼ã«åºæ¥ã¾ãã from pit import Pit config = Pit.get('twitter.com',{'require' : {'email':'','password':''}}) print config['email'] print config['
ãåºæ¬ãfollow ãããããè¿ããããèªåã§ããããããã¨ãæãã¯ãããã®ã§ããããªæãã§èªå follow ããããã«ãã¾ããã Twitter ã§ã¤ãã¤ã follow ããã®ãé¢åããã - ã«ã½ããç 究æ ã Gmail ã« IMAP ã§ã¢ã¯ã»ã¹ãã¦ããã£ã¦ããã®ã ãåéãRubyã§ãããã¨ãã¦ãã®ã§ ããã Python ã§ãã£ãã»ããæ©ãã(ããããªä»å±çãªæå³ã§ã ã¨ãæã£ãã®ã§ãã£ã¦ã¿ãã #!/usr/bin/env python # -*- coding: utf-8 -*- gmailuser='dankogai@gmail.com' gmailpasswd='kogaidan' twitteruser = 'dankogai' twitterpasswd = 'kogaidan' from imaplib import IMAP4_SSL import re,
Google ã®ãããã§ä¸æ°ã« Python ã®äººæ°ãã§ã¦ãããã§ããï¼ Python ã¯æè²è¨èªãªãã¦å´é¢ãããã®ã§ãè¨èªä»æ§ãå°ããã¦è¦ãããããã ãã©ã å°ãä¸è¬çã§ãªãã¦åµããã¨ãããã¾ãã æè§ãªã®ã§åã Python ããã£ã¦åµã£ãã¨ãããæ¸ãã¦ã¿ã¾ãã switch æã¯ç¡ã ç¡ãã§ãã default ãæãæç¹ã§éªæªã ã£ã¦èª°ããè¨ã£ã¦ã¾ããã substring ã¯æååã«é åã¨ãã¦ã¢ã¯ã»ã¹ããã°OK Java ã js ã® substringãPerl ã® sbstr ã¿ãããªã® >>> 'hogehoge'[5] 'o' >>> 'hogehoge'[5:7] 'og' >>> 'hogehoge'[5:] 'oge' >>> 'hogehoge'[:5] 'hogeh' >>> ã¡ãªã¿ã«ä¸æåã§ãæååãªã®ã§ãããªäºãåºæ¥ã¾ãã >>> 'hogehoge'[5][
åãã¦æ¢ å¹²ããä½ã£ã¦ã¿ã話 ä»å¹´ã®å¤ãåãã¦æ¢ å¹²ããä½ãã¾ããã ç§æ¢ å¹²ã大好ããªãã§ãããèªåã§ä½ãã¨ããçºæ³ããªãã¦â¦ååãæ¢ ã·ããããä½ã£ã¦ããã®ã«å½±é¿ããã¦å»å¹´ããæ¢ ä»äºãå§ãã¦ã¿ããã§ããããã®ã¨ãã®èª¬ææ¸ã«ãæ¢ å¹²ãã®ä½ãæ¹ãã¨ããã®ãå ¥ã£ã¦ãã¦ããã¼ã¼æ¢ å¹²ãã£ã¦èªåâ¦
ãã®ä¾ã§ã¯ãCãã¼ã¸ã§ã³ã®å®è¡ã« 11ç§ãããã£ã¦ãã (ãªãå®é¨ç°å¢ã¯ Pentium4 ã® 2GHzã使ç¨ããã³ã³ãã¤ã©ã¯ gcc-3.3 ã§ãã)ã ããã«å¯¾ãã¦ãPythonãã¼ã¸ã§ã³ã¯ããã 0.01ç§ããããã£ã¦ããªãã ããã« Python ãå¹çã®ããããã°ã©ãã³ã°è¨èªã§ãããã®è¨¼å·¦ã¨ããããã ãªããå ¬å¹³ãæããããã«ãJava ã«ãããã¼ã¸ã§ã³ã以ä¸ã«æ示ãã¦ãã: Javaãã¼ã¸ã§ã³[ç·¨é] // HardyAndRamanujanNumberCalculatorOfMine.java // package com.my.own.domain.believe.me.this.is.mine; import logic.mathematics.calculator.standard.ordinary.normal.basic.StandardBasicNormalOrd
ãDjango(ã®ååã)ã«ãã³ã¤ã¤ï¼ãã¨ããäºã§Pythonãå§ãã¦ã¿ã¾ããã - ããã¾ã§å人çã«å§ããã¨ãããã¨ã§ã - æ¬æä¸ã®ãµã³ãã«ã³ã¼ããªã©ã¯å ¨ã¦Python2.4ã§å®è¡ãã¦ãã¾ã Pythonã¯ããã¾ãã å ¥éæ¸ã¯ãåãã¦ã®Pythonã ã»ããæ å ±æº ããã§ã¯å§ãã¾ããã ã好ã¿ã§ã©ãã ã»ãã«ã ããã¥ã¡ã³ããèªã¿ã¾ããã èªä½ã¢ã¸ã¥ã¼ã«ã«ã使ãã¾ã ä¸ã®äºãå°ã å®è£ ä¾ãã°CPython JIT(Just In Time)ã³ã³ãã¤ã© ããã¼ãºã³ãã¤ã㪠ããã§ã¯ãã¤ã¸ã§ã¹ãã§ã©ãã ã¹ãã¼ãã¡ã³ã ä»£å ¥ã¹ãã¼ãã¡ã³ã memo memo ifã¹ãã¼ãã¡ã³ã whileã«ã¼ãã¨forã«ã¼ã ã«ã¼ãå ã§å©ç¨åºæ¥ãã¹ãã¼ãã¡ã³ã forã«ã¼ãã¨ã¤ãã¬ã¼ã¿ã¨ã¸ã§ãã¬ã¼ã¿ å ¨ã¦ã¯ãªãã¸ã§ã¯ã ä¸å¤æ§ ãªãã¸ã§ã¯ãæåã¨ã¯é¢ä¿ããã¾ãã é¢æ°ãã¯ã©ã¹ãæ¸ãé åº ãã«ãã¤ã³ãªãã¸
ã¿ããªã®IoT/ã¿ããªã®Pythonã®èè ãäºåçè¿ã160平米ã®åºä»ãä¸æ¸å»ºã¦ã«å«/æ¯å/å¨/ãããã¨æ®ããã¦ã¾ããæé1000ä¸PV/150ä¸UUã®Webãµã¼ãã¹éå¶ä¸ã å 責äºé ãã©ã¤ãã·ã¼ããªã·ã¼ Pythonã§ã¯ã¦ãªããã¯ãã¼ã¯ãã¢ã¬ã³ã¬ããããã®ã©ããã¼ãpyhatebuãã¨ããã®ãä½ã£ã¦ã¿ããå人çã«ä½¿ã£ã¦ãããã®ãã¡ãã£ã¨ãã£ãããã¾ã¨ãã¦ã¿ã¾ãããPythonçã«ããã¨ã¾ã£ã¨ããªå®è£ ã§ãããã¨ãç®æãã¾ããã ç§ã¯ãã®ã©ããã¼ã¨twitterã®ã©ããã¼ãçµã¿åããã¦ï¼æ°çããã¯ãã¼ã¯ãtwitterã«Postããã¹ã¯ãªããã¨ãä½ã£ã¦éãã§ã¾ãã:-)ã Python 2.4 + ElementTree ï¼ã¾ãã¯Python 2.5ã§ä½¿ã£ã¦ãã ãããPython 2.3ã¨ãã§ã¯ä½¿ãã¾ããã 使ç¨æ¹æ³ã¨ä½¿ç¨ä¾ ä¸ã®ãªã³ã¯ããã¢ã¼ã«ã¤ãããã¦ã³ãã¼ããã¦ãã ããã ã¾ãã¯ã¨ã³
PyDEVã¯ãEclipseã§PythonãJythonã®ããã°ã©ã ãéçºããããã®ãã©ã°ã¤ã³ãããã使ãã¨ãEclipseã第ä¸ç´ã®Pythonçµ±åéçºç°å¢ã«ãªãã PyDEVãå©ç¨ããã«ã¯Eclipseã¨Pythonãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããããWindowsãLinux/UNIXãMac OS Xãªã©ã¨ãã£ãé常ã®ãã©ãããã©ã¼ã ã§ããã°ãJavaï¼Eclipseã¯Javaã§æ¸ããã¦ããï¼ã¨Pythonã¯ã»ã¨ãã©ã®å ´åã«åä½ãããå¾ã£ã¦ãPyDEVã¯ã»ã¼ãã¹ã¦ã®OSä¸ã§å©ç¨å¯è½ã ãEclipseä¸ã§ãã¡ãã¥ã¼ããHelpâSoftware UpdatesâFind and Installã®é ã«é¸æããã次ãã§ãSearch for new features for installãé¸ã³ãNew Remote Site...ãã¯ãªãã¯ãããããã§ãååã«PyDevããURLã«ã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}