设置字符串列表 / Set string list Args: value: 字符串列表 / String list Returns: bool: 是否成功 / Whether successful
(self, value: list[str])
| 157 | return result |
| 158 | |
| 159 | def set(self, value: list[str]) -> bool: |
| 160 | """设置字符串列表 / Set string list |
| 161 | |
| 162 | Args: |
| 163 | value: 字符串列表 / String list |
| 164 | |
| 165 | Returns: |
| 166 | bool: 是否成功 / Whether successful |
| 167 | """ |
| 168 | self.clear() |
| 169 | for s in value: |
| 170 | if not self.append(s): |
| 171 | return False |
| 172 | return True |
| 173 | |
| 174 | def append(self, value: str) -> bool: |
| 175 | """追加字符串 / Append string |
no test coverage detected