You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
320 B
Python
14 lines
320 B
Python
9 months ago
|
# -*- coding: utf-8 -*-
|
||
|
# @Time : 2020/6/5 11:35
|
||
|
# @Author : zhoujun
|
||
|
from .DBHead import DBHead
|
||
|
|
||
|
__all__ = ["build_head"]
|
||
|
support_head = ["DBHead"]
|
||
|
|
||
|
|
||
|
def build_head(head_name, **kwargs):
|
||
|
assert head_name in support_head, f"all support head is {support_head}"
|
||
|
head = eval(head_name)(**kwargs)
|
||
|
return head
|