Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

var colors python

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import datetime
from colorama import init
init(autoreset=True)
from fabric.colors import red, green

latitude =  36.02866
longitude = 70.77258

print ("33[92m" + 'I know I can be green' + "33[0m")
print ("33[92m" +'I want the whole line to be green or red',latitude,',',longitude, 'at', datetime.datetime.now(), "33[0m")
print ("33[91m" + 'I know I can be red' + "33[0m")
print ('automatically back to default color again')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #var #colors #python
ADD COMMENT
Topic
Name
9+4 =