æãã¿ã¡ã«ãªããåå¿è ç¨è¨èªã㯠Pythonï¼
追è¨:ããã¯ãã¿ã ã£ãã®ã§ãããæãã®å¤ãã¼ã¸ã©ã³ã¯ãé«ãã¿ããã§ãåå¿è
Pythonãã§æ¤ç´¢ãã人ãããã«æ¥ã¦ãã¾ãããã§ãã
æ¬å½ã«Pythonåãã¦ã®äººã¯ä¸ã®è¨äºãèªãã¨ããã¨æãã¾ãã
-
-
-
- -
-
-
- æãã¿ã¡ã«ãªããåå¿è ç¨è¨èªã㯠JavaScriptã - ITæ¦è¨
Pythonã ã£ã¦ã¯ãã¼ã¸ã£ã¤ãããããã£ï¼ï¼ï¼
// JS function make_counter(){ var x = 0; return function counter(){ x++; console.log(x); return counter; } } make_counter()()()()
# Python def make_counter(): def counter(): counter.x += 1 print counter.x return counter counter.x = 0 return counter make_counter()()()()
ã»ãï¼ãã£ããï¼(ï¼ï¼)
class make_counter(): def __init__(counter): counter.x = 0 def __call__(counter): counter.x += 1 print counter.x return counter
ã¡ãã£ã¨defãclassã«ãªã£ã¦åæåå¦çã__init__ã®ä¸ã«å ¥ã£ãã ãã ãï¼
class Counter(object): def __init__(self): self.count = 0 def __call__(self): self.count += 1 print self.count, return self def reset(self): self.count = 0 print "[reset]", return self
>>> Counter()()()().reset()()()() 1 2 3 [reset] 1 2 3 <__main__.Counter object at 0x0149C7B0>
ãªã»ãããã¿ã³ãç°¡åã«ã¤ãããããï¼
æãã¿ã¡ã«ãªããåå¿è
ç¨è¨èªã㯠Pythonï¼
ã¤ã³ãã³ãã使ãç¿æ
£ãã¤ããï¼(ï¼ï¼)
-
-
-
- -
-
-
amachangã«ãPythonã£ã¦ã¯ãã¼ã¸ã£ä½¿ããã®ï¼ã·ã·ã£ãã¨DISããã¦ãã£ã¨ãªã£ã¦æ¸ããè¨äºããªãã ãç¥ãã«Python代表ã§åå ããã¿ãããªå½¢ã«ãªã£ã¦ãã¦ã³ã£ããã
誰ããã¾ããã«Pythonã®ããã¨ãããæ¸ãã¦ãããã¨ãããªã¼ã
èªåã§ã¾ããã«æ¸ãæ°ããªãã®ã§éå»ã®è¨äºã¸ãªã³ã¯ãªã³ã¯ã
- IronPython ã§Wiiãªã¢ã³ã³ããå¤ãåå¾
- Pythonã§ãã©ã¯ã¿ã«(ã¸ã¥ãªã¢éå)
- Pythonã§ãIRCãããã¯ä½ãã
- Pythonã§ã¹ãã¯ãã©ã 解æ
- Pythonã§æ¥æ¬èªPDFãã¤ããçããµã³ãã«
ã©ãæ¸ãorgãPythonã§ä½ããã¦ãã¾ãã