3v324v23 commited on
Commit
8f739cf
1 Parent(s): 54cd677

remote additional file

Browse files
Files changed (1) hide show
  1. colorful.py +0 -91
colorful.py DELETED
@@ -1,91 +0,0 @@
1
- import platform
2
- from sys import stdout
3
-
4
- if platform.system()=="Linux":
5
- pass
6
- else:
7
- from colorama import init
8
- init()
9
-
10
- # Do you like the elegance of Chinese characters?
11
- def print红(*kw,**kargs):
12
- print("\033[0;31m",*kw,"\033[0m",**kargs)
13
- def print绿(*kw,**kargs):
14
- print("\033[0;32m",*kw,"\033[0m",**kargs)
15
- def print黄(*kw,**kargs):
16
- print("\033[0;33m",*kw,"\033[0m",**kargs)
17
- def print蓝(*kw,**kargs):
18
- print("\033[0;34m",*kw,"\033[0m",**kargs)
19
- def print紫(*kw,**kargs):
20
- print("\033[0;35m",*kw,"\033[0m",**kargs)
21
- def print靛(*kw,**kargs):
22
- print("\033[0;36m",*kw,"\033[0m",**kargs)
23
-
24
- def print亮红(*kw,**kargs):
25
- print("\033[1;31m",*kw,"\033[0m",**kargs)
26
- def print亮绿(*kw,**kargs):
27
- print("\033[1;32m",*kw,"\033[0m",**kargs)
28
- def print亮黄(*kw,**kargs):
29
- print("\033[1;33m",*kw,"\033[0m",**kargs)
30
- def print亮蓝(*kw,**kargs):
31
- print("\033[1;34m",*kw,"\033[0m",**kargs)
32
- def print亮紫(*kw,**kargs):
33
- print("\033[1;35m",*kw,"\033[0m",**kargs)
34
- def print亮靛(*kw,**kargs):
35
- print("\033[1;36m",*kw,"\033[0m",**kargs)
36
-
37
-
38
-
39
- def print亮红(*kw,**kargs):
40
- print("\033[1;31m",*kw,"\033[0m",**kargs)
41
- def print亮绿(*kw,**kargs):
42
- print("\033[1;32m",*kw,"\033[0m",**kargs)
43
- def print亮黄(*kw,**kargs):
44
- print("\033[1;33m",*kw,"\033[0m",**kargs)
45
- def print亮蓝(*kw,**kargs):
46
- print("\033[1;34m",*kw,"\033[0m",**kargs)
47
- def print亮紫(*kw,**kargs):
48
- print("\033[1;35m",*kw,"\033[0m",**kargs)
49
- def print亮靛(*kw,**kargs):
50
- print("\033[1;36m",*kw,"\033[0m",**kargs)
51
-
52
- print_red = print红
53
- print_green = print绿
54
- print_yellow = print黄
55
- print_blue = print蓝
56
- print_purple = print紫
57
- print_indigo = print靛
58
-
59
- print_bold_red = print亮红
60
- print_bold_green = print亮绿
61
- print_bold_yellow = print亮黄
62
- print_bold_blue = print亮蓝
63
- print_bold_purple = print亮紫
64
- print_bold_indigo = print亮靛
65
-
66
- if not stdout.isatty():
67
- # redirection, avoid a fucked up log file
68
- print红 = print
69
- print绿 = print
70
- print黄 = print
71
- print蓝 = print
72
- print紫 = print
73
- print靛 = print
74
- print亮红 = print
75
- print亮绿 = print
76
- print亮黄 = print
77
- print亮蓝 = print
78
- print亮紫 = print
79
- print亮靛 = print
80
- print_red = print
81
- print_green = print
82
- print_yellow = print
83
- print_blue = print
84
- print_purple = print
85
- print_indigo = print
86
- print_bold_red = print
87
- print_bold_green = print
88
- print_bold_yellow = print
89
- print_bold_blue = print
90
- print_bold_purple = print
91
- print_bold_indigo = print