    def render(self, name, value, attrs=None, renderer=None):
        """将小部件呈现为HTML字符串。"""
        context = self.get_context(name, value, attrs)
        return self._render(self.template_name, context, renderer)
将小部件呈现为HTML字符串。
simpleui/widgets.py