コード例 #1
0
def clear_line_if_tty():
    if use_tty_output():
        std_out_clear_line()
    else:
        print(end='\n')
コード例 #2
0
def return_caret_if_tty_output():
    if use_tty_output():
        print('\r', end='')
    else:
        print('\n', end='')
コード例 #3
0
def show_complexity_notification():
    if use_tty_output():
        print("Time complexity:\r", end="")
コード例 #4
0
def show_complexity_notification():
    if use_tty_output():
        print('Time complexity:\r', end='')
コード例 #5
0
def clear_line_if_tty():
    if use_tty_output():
        std_out_clear_line()
    else:
        print(end='\n')