[英]Print on same line on sikuli IDE
I am trying to print several things on the same line using different calls on the Sikuli IDE, but I'm apparently unable to do so.我试图在 Sikuli IDE 上使用不同的调用在同一行上打印几件东西,但我显然无法这样做。
What I would do on python as:我会在 python 上做什么:
print("Doing a sum: ", end="")
x=2+5
print(x)
>> Doing a sum: 7
On Sikuli IDE (2.0.5 for what is worth), I'm getting this error (line 44 is where the print is):在 Sikuli IDE(价值为 2.0.5)上,我收到此错误(第 44 行是打印位置):
[error] script [ test_framework ] stopped with error in line 44 at column 54
[error] SyntaxError ( "mismatched input '=' expecting RPAREN", )
I've tried different combinations as well as parameters (some flush=True
as well), but to no avail.我尝试了不同的组合以及参数(一些flush=True
以及),但无济于事。
Did anyone ever try this before?有没有人尝试过这个? Any solution?有什么解决办法吗?
Thanks谢谢
From Sikulix website:来自 Sikulix 网站:
while the print
line you are trying to run must be ran using Python 3. It won't work with Python 2.7.而您尝试运行的print
行必须使用 Python 3 运行。它不适用于 Python 2.7。 You can refer to this question to get more details.您可以参考此问题以获取更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.