ok = not 0
print(ok)
> true
ok = not 1
print(ok)
> false
ok = not(0)
print(ok)
> true
ok = not(1)
print(ok)
> false
python not not()
最新推荐文章于 2024-04-02 15:44:12 发布
ok = not 0
print(ok)
> true
ok = not 1
print(ok)
> false
ok = not(0)
print(ok)
> true
ok = not(1)
print(ok)
> false