2012-06-14から1日間の記事一覧

""と''

print "\n" print '\n' >> >>\nなんと地味な差

tweepy使用,public streamを垂れ流す

#coding:utf-8 import tweepy import sys consumer_key = '' consumer_secret = '' access_key = '' access_secret = '' class StreamListener(tweepy.StreamListener): def on_status(self, status): if sys.argv[1].decode('utf-8') in status.text: print…

perlのお勉強

ぼちぼちperlのお勉強をしています. 昨日はshift()等学んだ. my @a = (0, 1, 2); print shift(@a) >>0shiftは配列を引数にとりその第一要素を返す. 次のような場合は動作が異なる. sub a { my $x = shift // 1; # $xのデフォルト値の設定(引数(shift)…