utils.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:SFC_models 作者: brianr747 项目源码 文件源码
def get_invalid_variable_names():
    """
    Get a list of invalid variable names for use in sfc_model equations.

    Includes mathematical operators in module 'math'.

    Cannot use 'k', as that is the discrete time axis step variable.

    :return: list
    """
    internal = ['self', 'None', 'k']
    kw = keyword.kwlist
    if is_python_3:
        built = dir(builtins)
    else:  # pragma: no cover
        built = dir(__builtin__)
    out = internal + kw + built + dir(math)
    return list(out)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号