MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / set

Method set

source/binding/Python/maa/buffer.py:159–172  ·  view source on GitHub ↗

设置字符串列表 / Set string list Args: value: 字符串列表 / String list Returns: bool: 是否成功 / Whether successful

(self, value: list[str])

Source from the content-addressed store, hash-verified

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

Callers 2

override_nextMethod · 0.95
override_nextMethod · 0.95

Calls 2

clearMethod · 0.95
appendMethod · 0.95

Tested by

no test coverage detected