I saw this question , but I'm having problems with top solution . For example:
>>> scanf.sscanf("\"test\"","\"%s\"") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "scanf.py", line 393, in sscanf return bscanf(CharacterBufferFromIterable(inputString), formatString) File "scanf.py", line 414, in bscanf return parser(buffer) File "scanf.py", line 577, in __call__ raise IncompleteCaptureError(e, tuple(results)) scanf.IncompleteCaptureError: (FormatError('" != ',), ('test"',)) >>>
What am I doing wrong? Should this not work?
python printf scanf
Janus Troelsen Oct 12 2018-12-12T00: 00Z
source share