-
Notifications
You must be signed in to change notification settings - Fork 112
/
util.py
38 lines (29 loc) · 825 Bytes
/
util.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
##########################
#### 工具类 ####
##########################
def log_title(title):
print()
print(f'-------- {title} ----------')
print()
def log_h1(h1):
print()
print()
print(f'========== {h1} =============')
print()
print()
def log_h1_start(h1):
print_newLine(8)
print('=============================================================')
print(f'==================== {h1} =========================')
print()
def log_h1_end(h1):
print()
print(f'================ {h1} ===================')
print('=============================================================')
print_newLine(8)
def print_newLine(n):
for i in range(n):
print()
if __name__ == '__main__':
log_title('test')