📅  最后修改于: 2022-03-11 14:45:39.337000             🧑  作者: Mango
#!/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 ("\033[92m" + 'I know I can be green' + "\033[0m")
print ("\033[92m" +'I want the whole line to be green or red',latitude,',',longitude, 'at', datetime.datetime.now(), "\033[0m")
print ("\033[91m" + 'I know I can be red' + "\033[0m")
print ('automatically back to default color again')