reverpf

Reverse Printf


License
MIT
Install
pip install reverpf==0.6.1

Documentation

REVERPF

Reverse Printf (WORK IN PROGRESS)

I dont understand

Look this code (python):

>>> print("%2d%2d" % (19, 81))
1981

Oh well, but what's happen if I need revert the number 1981 to original 19 and 81?:

# reserve_printf dont exist... still!
>>> reverse_printf("1918", "%2d%2d")
[19, 81]

Of course, only works in fixed print.

Compatibility

I do not know if the printf of c is a standard, but it seems that the python works the same.