08/02/16 12:25:05
URLリンク(www.rubyist.net)
>>> str("None")
'None'
>>> str(None)
'None'
>>> print str(None)
None
>>> print "ノン"
ノン
>>> int(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: int() argument must be a string or a number, not 'NoneType'
もし str() が int() 並に制約が多い関数であったなら
Pythonは今よりもぜんぜん普及してないと思うお昼
下がりの吉宗であった