User Tools

Site Tools


python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python [2009/08/14 05:52] suapapapython [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== 문서화 ====== ====== 문서화 ======
 <code python> <code python>
-"""Scons.Action (Scons 디렉토리의 Auction.py) +-*- coding: utf-8 -*- 
-어저구 저쩌구 +vim: et sw=4 fenc=utf-8:
-""" +
-+
-License goes here +
-+
-</code>+
  
-<code python> 
 # This file is part of App. # This file is part of App.
 # Copyright (C) 2009 by Homin Lee <ff4500@gmail.com> # Copyright (C) 2009 by Homin Lee <ff4500@gmail.com>
Line 17: Line 11:
 # the Free Software Foundation; either version 2 of the License, or # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version. # (at your option) any later version.
 +
 +</code>
 +====== 한줄 로또 ======
 +<code python>
 +>>> import random
 +>>> (lambda a:random.shuffle(a) or a[:6])(range(1, 46))
 +</code>
 +====== 찾으면 없는 라이브러리들 ======
 +  *[[http://snippets.dzone.com/posts/show/6944|UnixColorStyler]]
 +  *[[http://jeetworks.org/node/43|Python Code Snippet to Get External IP Address]]
 +<code txt>
 +socket.gethostbyname(socket.getfqdn()) 
 +socket.gethostbyname_ex(socket.gethostname())[2]
 +</code>
 +  *[[http://stackoverflow.com/questions/207234/list-of-ip-addresses-hostnames-from-local-network-in-python|list-of-ip-addresses-hostnames-from-local-network-in-python]]
 +  *[[http://alastairs-place.net/netifaces/|netifaces]]
 +<code bash>
 +sudo apt-get install python-netifaces
  
 </code> </code>
python.1250229164.txt.gz · Last modified: 2013/08/03 05:04 (external edit)