FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
WeChatOpenDevTools-Python/utils/banner.py at main · codingZXY/WeChatOpenDevTools-Python · GitHub
codingZXY
/
WeChatOpenDevTools-Python
Public
forked from
JaveleyQAQ/WeChatOpenDevTools-Python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
WeChatOpenDevTools-Python
/
utils
/
banner.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (18 loc) · 820 Bytes
Breadcrumbs
WeChatOpenDevTools-Python
/
utils
/
banner.py
Copy path
File metadata and controls
22 lines (18 loc) · 820 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import
pyfiglet
import
random
from
utils
.
colors
import
Color
def
colored_print
(
text
,
color_code
):
print
(
f"
{
color_code
}
{
text
}
"
+
Color
.
END
)
def
generate_banner
():
name
=
"""
公众号: 一位不愿透露姓名的热心网友
Github:https://github.com/JaveleyQAQ
"""
selected_fonts
=
[
'standard'
,
'big'
,
'slant'
,
'small'
,
'shadow'
]
selected_font
=
random
.
choice
(
selected_fonts
)
font
=
pyfiglet
.
Figlet
(
font
=
selected_font
)
ascii_banner
=
font
.
renderText
(
"WX DevTools"
)
color_codes
=
[
Color
.
RED
,
Color
.
GREEN
,
Color
.
BLUE
,
Color
.
YELLOW
,
Color
.
CYAN
,
Color
.
PURPLE
]
selected_color
=
random
.
choice
(
color_codes
)
ascii_banner_with_author
=
ascii_banner
.
rstrip
(
'
\r
\n
'
)
+
f'
\n
\n
\t
'
+
name
+
f'
\n
'
colored_print
(
ascii_banner_with_author
,
selected_color
)
Back
|
FazBrowse Home
|
New Git URL