- document.write(String.fromCharCode(119,119,119,46,103,111,111,103,108,101,46,99,111,109));
How we going to get unicode for www.google.com in Python?
For python, ord() function is used as follow.
import sys
st = sys.argv[1]
e = []
for a in st:
e.append("%s" %ord(a))
print ",".join(e)
Result:
0 comments:
Post a Comment