riku
2024-01-10 a9e8e27e0503552b7b2a99c821da732175d4f071
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
class FormatUtils: 
 
    """ 添加换行符
        param num_lines: 需要换行的行数,默认为1 
    """ 
    @staticmethod 
    def line_break(num_lines:int=1): 
        
        print('\n' * num_lines) 
    
    """ 添加缩进 
        param num_spaces: 缩进的空格数,默认为4 
    """ 
    @staticmethod 
    def indent(num_spaces:int=4): 
        print(' ' * num_spaces, end='')