master > master: code py - display mit leerzeichen um +

master
RD 4 months ago
parent 48fb136436
commit 3032840a1d
  1. 2
      code/python/src/algorithms/rucksack/display.py

@ -168,7 +168,7 @@ def display_sum(
parts = list(filter(lambda x: x[1] > 0, parts));
value = sum([ u*x for _, u, x in parts ]);
expr = '\x1b[2m+\x1b[0m'.join(map(render, parts));
expr = '\x1b[2m + \x1b[0m'.join(map(render, parts));
if as_maximum:
return f'\x1b[2m=\x1b[0m {expr}';

Loading…
Cancel
Save