def _convert_code(code):
    """
    将聚宽形式的代码转化为 xalpha 形式

    :param code:
    :return:
    """
    no, mk = code.split('.')
    if mk == 'XSHG':
        return 'SH' + no
    elif mk == 'XSHE':
        return 'SZ' + no
