Closed GoogleCodeExporter closed 8 years ago
修改一下,
* 向前相容(map以後要被拿掉)
* 16進制
{{{
def variable_to_number(tmp):
"""
convert variable to hex number
"""
word_list=[]
for i in tmp:
ori = str(hex(ord(i)))[2:]
word_list.append(ori)
return "_".join(word_list)
}}}
Original comment by gasolin
on 23 Aug 2007 at 5:23
Original issue reported on code.google.com by
jhuangjiahua@gmail.com
on 22 Aug 2007 at 9:10Attachments: