>>> from verhoeff import VerhoeffAlternatively, it can be invoked as a command as follows:
>>> v = Verhoeff()
>>> v.calcsum(142857)
0
>>> v.checksum(1428570)
0
python verhoeff.py 142857
1428570
>>> from verhoeff import VerhoeffAlternatively, it can be invoked as a command as follows:
>>> v = Verhoeff()
>>> v.calcsum(142857)
0
>>> v.checksum(1428570)
0
python verhoeff.py 142857
1428570
No comments:
Post a Comment