西库里有自己的功能type用于打字。有没有办法调用 python (jython) 函数type?模块builtins无法导入。我当然可以使用是实例相反,但我只是好奇是否有可能超出 Sikuli 范围并调用不“覆盖”的 python 内置函数type功能。我用的是Sikuli r930。
#import builtins #ImportError: No module named builtins
findAll("1369036502514.png")
matches = getLastMatches()
print(isinstance(matches,Finder)) #returns TRUE
type("1369035684637.png",'hello world') #types characters
type('hello world again') #types characters
print(type(matches)) #TypeError: type(): 1st arg can't be coerced to String
Running 内置类型也会导致失败:
builtins.type(matches)
NameError: name 'builtins' is not defined
__builtins__.type(matches)
NameError: name '__builtins__' is not defined
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)