empty = None
if empty is None:
print('変数emptyはNoneです。')
print(1 is True)
print(1 == True)
print(1 is 1)
print(True is True)
実行結果
変数emptyはNoneです。
False
True
True
True
is は none の時位しか使わない感じ。。。
Go to list of users who liked
More than 3 years have passed since last update.
empty = None
if empty is None:
print('変数emptyはNoneです。')
print(1 is True)
print(1 == True)
print(1 is 1)
print(True is True)
変数emptyはNoneです。
False
True
True
True
is は none の時位しか使わない感じ。。。
Register as a new user and use Qiita more conveniently
Go to list of users who liked