Update 01_int.py

This commit is contained in:
BLUELOVETH 2024-03-28 19:43:35 +08:00 committed by GitHub
parent e3a8d05ba6
commit 0acc35c040
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,10 @@ assert (1).bit_length() == 1
assert (2).bit_length() == 2
assert (3).bit_length() == 2
assert (-1).bit_length() == 1
assert (-2).bit_length() == 2
assert (-3).bit_length() == 2
# test int()
assert int() == 0
assert int(True) == 1