slow-starter

なにをやるにもslow start……。

vim boolean

booleanの確認

#!/usr/bin/env python3
# False is False
print("False:\t",bool(False))
# True is True
print("True:\t",bool(True))
# 0 is False
print("0:\t",bool(0))
# 1.. is True
print("1:\t",bool(1))
# -1.. is True
print("-1:\t",bool(-1))
# None is False
print("None:\t",bool(None))
$./test.py
False:   False
True:    True
0:       False
1:       True
-1:      True
None:    False