2009-10-27から1日間の記事一覧
この記事はDiggでgame developmentで検索して見つけた最近の記事です。 日本語を挿入していきます。 英語の勉強にもなるので、一石二鳥です。 (kill two birds with one stone) Intel is back, pitching its processors for gaming graphics. インテルが、ゲ…
def getServerName( url=URL ): ''' URLを与えたらサーバ名を文字列で返す ''' import urllib url = url.rstrip() site = urllib.urlopen( url ) info = site.headers infostr = str(info) sep = infostr.split('\n') for s in sep: if 'Server:' in str(s):…
telnetのGETに対応する動作。 import urllib con = urllib.urlopen("http://rem.bake-neko.net/") print con.geturl() #URL print con.read() #html print con.headers #Serverなど参考