def print_res(data):
    """ Print translate result in a better format
    Args:
        data(str): result
    """
    print('===================================')
    main_part = data['data']
    print(main_part['word_name'])
    symbols = main_part['symbols'][0]
    print("美式音标：[" + symbols['ph_am'] + "]")
    print("英式音标：[" + symbols['ph_en'] + "]")
    print('-----------------------------------')
    parts = symbols['parts']
    for part in parts:
        print(part['part'])
        for mean in part['means']:
            print("    ", mean)
    print('===================================')
def print_res(data):
    """ Print translate result in a better format
    Args:
        data(str): result
    """
    print('===================================')
    main_part = data['data']
    print(main_part['word_name'])
    symbols = main_part['symbols'][0]
    print("美式音标：[" + symbols['ph_am'] + "]")
    print("英式音标：[" + symbols['ph_en'] + "]")
    print('-----------------------------------')
    parts = symbols['parts']
    for part in parts:
        print(part['part'])
        for mean in part['means']:
            print("    ", mean)
    print('===================================')
def print_res ( data ) : print ( '===================================' ) main_part = data [ 'data' ] print ( main_part [ 'word_name' ] ) symbols = main_part [ 'symbols' ] [ 0 ] print ( "美式音标：[" + symbols ' h_am']  +  "]") print ( "英式音标：[" + symbols ' h_en']  +  "]") print ( '-----------------------------------' ) parts = symbols [ 'parts' ] for part in parts : print ( part [ 'part' ] ) for mean in part [ 'means' ] : print ( "    " , mean ) print ( '===================================' )
Print translate result in a better format
    Args:
        data(str): result
Print translate result in a better format Args : data ( str ) : result