by shigemk2

当面は技術的なことしか書かない

if hoge 的なやつ

なにこのPHPみたいな挙動…

def a(hoge=None):
    if hoge:
        print 'hoge'

a(1) # hoge
a(0) # 何も返らない!!