Пример #1
0
def color_only(string, *colors):
  b = Builder(string)
  for color in colors:
    b.insert(0, color)
  b.insert(-1, Codes.RESET)
  return b.result()
Пример #2
0
def color(string, *colors):
  b = Builder(string)
  for color in colors:
    b.insert(0, color)
  return b.result()