简体   繁体   中英

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.

What I would do on python as:

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):

[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.

Did anyone ever try this before? Any solution?

Thanks

From Sikulix website:

语言支持

while the print line you are trying to run must be ran using Python 3. It won't work with Python 2.7. You can refer to this question to get more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM