Hako wrote: >I try this command: > > >>>>import string >>>>string.atoi('78',16) >>>> >>>> >120 >this is 120 not 4E. > >Someone can tell me how to convert a decimal number to hex number? Can >print A, B, C,DEF. > > To print the hexidecimal string representation of an integer, n, use print hex(n) or print "%x" % n
Regards, Aaron Bingham -- http://mail.python.org/mailman/listinfo/python-list