You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
197 B
13 lines
197 B
11 years ago
|
# test builtin hex function
|
||
|
|
||
|
print(hex(1))
|
||
|
print(hex(-1))
|
||
|
print(hex(15))
|
||
|
print(hex(-15))
|
||
|
|
||
|
print(hex(12345))
|
||
|
print(hex(0x12345))
|
||
|
|
||
|
print(hex(12345678901234567890))
|
||
|
print(hex(0x12345678901234567890))
|