XJTU_Python/homework/3/4.py

6 lines
97 B
Python

s= input()
print(bin(ord(s))[2:])
print(oct(ord(s))[2:])
print(hex(ord(s))[2:])
#code by Luthics