ord in a file
- ord
import sys
filename = sys.argv[1]
with open(filename) as fh:
content = fh.read()
for c in content:
print(ord(c))
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
import sys
filename = sys.argv[1]
with open(filename) as fh:
content = fh.read()
for c in content:
print(ord(c))