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

Method append

source/binding/Python/maa/buffer.py:174–185  ·  view source on GitHub ↗

追加字符串 / Append string Args: value: 要追加的字符串 / String to append Returns: bool: 是否成功 / Whether successful

(self, value: str)

Source from the content-addressed store, hash-verified

172 return True
173
174 def append(self, value: str) -> bool:
175 """追加字符串 / Append string
176
177 Args:
178 value: 要追加的字符串 / String to append
179
180 Returns:
181 bool: 是否成功 / Whether successful
182 """
183 buff = StringBuffer()
184 buff.set(value)
185 return bool(Library.framework().MaaStringListBufferAppend(self._handle, buff._handle))
186
187 def remove(self, index: int) -> bool:
188 """移除指定索引的字符串 / Remove string at index

Callers 1

setMethod · 0.95

Calls 3

setMethod · 0.95
frameworkMethod · 0.80
StringBufferClass · 0.70

Tested by

no test coverage detected