Update color/README.md
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
```python
|
||||
for i,x in enumerate('RGYBMC'):globals()[x]=lambda s,i=i:f'\x1b[{91+i}m{s}\x1b[0m'
|
||||
|
||||
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'))
|
||||
|
||||
Reference in New Issue
Block a user