Files
wiki/color
2025-01-06 22:47:18 +00:00
..
2025-01-06 22:47:18 +00:00

for i,x in enumerate('rgybmcRGYBMC'):globals()[x]=lambda s,i=i:f'\x1b[{31+i//6*60+i%6}m{s}\x1b[0m'

print(r('hello'), R('hello'))