Print each entry in hex and as string

This commit is contained in:
Peter J. Holzer 2024-09-19 19:25:55 +02:00
parent a3a976908d
commit c5660ab179
1 changed files with 7 additions and 1 deletions

View File

@ -29,4 +29,10 @@ for s in (
db.commit()
csr.execute("select * from t_pgcollate order by t")
for r in csr:
print(r)
for c in r[0]:
print(f"{ord(c):02x} ", end="")
print("- ", end="")
for c in r[0]:
print(c, end="")
print("")