Search
 
SCRIPT & CODE EXAMPLE
 

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')
Comment

PREVIOUS NEXT
Code Example
Python :: how to get last dimension of an array python 
Python :: Python NumPy stack Function Example with 2d array 
Python :: get hours from datetime.timedelta in python (Django) 
Python :: graph implementation in python 
Python :: pass python 
Python :: circle python programe 
Python :: newsapi 
Python :: Total processing python 
Python :: csrf token django 
Python :: how to append a tuple to a list 
Python :: functions in python programming 
Python :: defining function in python 
Python :: how to find a specific word in a list python 
Python :: python language server 
Python :: Generate bootstrap sample 
Python :: python import as 
Python :: sqlite python select with parameters 
Python :: how to find duplicates in csv file using python 
Python :: false in py 
Python :: how to import functions from another python file 
Python :: gcd python 
Python :: How to check for string membership in python 
Python :: transpose matrice numpy 
Python :: pandas filter by dictionary 
Python :: tuple to string python 
Python :: for loop only for first 10 python 
Python :: python string: .format() 
Python :: dynamically create python dictionary 
Python :: get date only from datetimefiel django 
Python :: gcd function in python 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =