ersa_utils.py
def str2list(s, sep=',', d_type=int):
    """
    Change a {sep} separated string into a list of items with d_type
    :param s: input string
    :param sep: separator for string
    :param d_type: data type of each element
    :return:
    """
    if type(s) is not list:
        s = [d_type(a) for a in s.split(sep)]
    return s

    Change a {sep} separated string into a list of items with d_type
    :param s: input string
    :param sep: separator for string
    :param d_type: data type of each element
    :return:
    
Change a {sep} separated string into a list of items with d_type
Change a { sep } separated string into a list of items with d_type
def str2list(s, sep=',', d_type=int):
    if type(s) is not list:
        s = [d_type(a) for a in s.split(sep)]
    return s
def str2list ( s , sep = ',' , d_type = int ) : if type ( s ) is not list : s = [ d_type ( a ) for a in s . split ( sep ) ] return s
Change a {sep} separated string into a list of items with d_type
Change a { sep } separated string into a list of items with d_type
"""
    Change a {sep} separated string into a list of items with d_type
    :param s: input string
    :param sep: separator for string
    :param d_type: data type of each element
    :return:
    """
None
s
None
sep
separator for string
separator for string
d_type
data type of each element
data type of each element