题解 | #缩短二进制#
缩短二进制
http://www.nowcoder.com/practice/4ffcc9f206b949ddb057ee0099b34d51
x=1234
print('{0:#o}'.format(x).replace('0o','0')+\
' {0:#x}'.format(x).upper())
缩短二进制
http://www.nowcoder.com/practice/4ffcc9f206b949ddb057ee0099b34d51
x=1234
print('{0:#o}'.format(x).replace('0o','0')+\
' {0:#x}'.format(x).upper())
相关推荐