0
1

More than 3 years have passed since last update.

None と is

Last updated at Posted at 2019-12-31
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 の時位しか使わない感じ。。。

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1