Pythonのお勉強 Part23at TECH
Pythonのお勉強 Part23 - 暇つぶし2ch749:デフォルトの名無しさん
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は今よりもぜんぜん普及してないと思うお昼
下がりの吉宗であった


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch