ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` a = input(':') print(a) m = bin(int(a)) n = oct(int(a)) j = hex(int(a)) print(m) print(n) print(j) print('---bin---oct--hex') m1 = '{:b}'.format(int(a)) n1 = '{:o}'.format(int(a)) x1 = '{:x}'.format(int(a)) print(m1) print(n1) print(x1) print('b---o---x') m2 = "%d" % int(a) n2 = '%o' % int(a) j2 = '%x' % int(a) print(m2) print(n2) print(j2) print('d---o---x') ```