123456789101112131415161718192021222324252627282930313233343536 |
- import sys
- icolor = 1
- def cprint(*text,color="blue",space=" ",end="\n"):
-
- if not color:
- print(text)
- return 0
- if color == "green":
- txt = '\033[92m'
- elif color == "red":
- txt = '\033[0;31m\033[1m'
- elif color == "yellow":
- txt = '\033[93m\033[1m'
- elif color == "cyan":
- txt = '\033[96m'
- else:
- txt = '\033[94m'
- for t in text:
- txt += str(t ) +" "
-
-
-
-
-
-
-
-
-
- txt += '\033[0m'
- print(txt,end=end)
-
- sys.stdout.flush()
|