Discuss / Python / 我是来交作业的

我是来交作业的

Topic source
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding: cp936 
a = int(raw_input('大爷随意来个数,我来告诉你他的十六进制是多少哟~ '.decode('utf-8').encode('gbk')))
print('%d的十六进制是:%s 您瞧对么~?\n (ˉ▽ ̄~) 切~~反正您也不知道'.decode('utf-8').encode('gbk') %(a,hex(a)))

  • 1

Reply