Study/Useful Source Codes 썸네일형 리스트형 Python , String to Hex after removing chr (Hex->String) # Convert String to Hex after removing chr ex) 0x def toString(str, chr): result = [] result = str.replace(chr,'') result = result.decode("hex") return reduce(lambda x,y:x+y,result) 더보기 Python , Remove Characters (문자열 제거) # Remove characters from string def removeChars(originString,targetChar): result = [] result = originString.replace(targetChar,'') return reduce(lambda x,y:x+y,result) 더보기 Python, String to Hex (String->Hex) # Convert String to Hex def toHex(str): result = [] for character in str: hv = hex(ord(character)).replace('0x','') result.append('%'+hv) return reduce(lambda x,y:x+y,result) 더보기 이전 1 다음